Implements Tests for StorageService
This commit is contained in:
@@ -2,12 +2,10 @@ package com.hideyoshi.backendportfolio.microservice.storageService.model;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
import lombok.*;
|
||||
|
||||
@Getter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StorageServiceUploadResponse {
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ public class StorageService {
|
||||
}
|
||||
}
|
||||
|
||||
private String getRequest(URI requestURI) throws IOException {
|
||||
protected String getRequest(URI requestURI) throws IOException {
|
||||
HttpGet request = new HttpGet(requestURI);
|
||||
request.setHeader("Content-Type", "application/json");
|
||||
|
||||
@@ -134,7 +134,7 @@ public class StorageService {
|
||||
);
|
||||
}
|
||||
|
||||
private String postRequest(URI requestURI, String requestBody) throws IOException {
|
||||
protected String postRequest(URI requestURI, String requestBody) throws IOException {
|
||||
HttpPost request = new HttpPost(requestURI);
|
||||
request.setHeader("Content-Type", "application/json");
|
||||
|
||||
@@ -153,7 +153,7 @@ public class StorageService {
|
||||
);
|
||||
}
|
||||
|
||||
private void deleteRequest(URI requestURI) throws IOException {
|
||||
protected void deleteRequest(URI requestURI) throws IOException {
|
||||
HttpDelete request = new HttpDelete(requestURI);
|
||||
request.setHeader("Content-Type", "application/json");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user