Merge "Add docker-compose file for ECS"
[nonrtric.git] / r-app-catalogue / src / test / java / org / oransc / rappcatalogue / api / ServicesApiDelegateImplTest.java
index c19e1de..f2f30ff 100644 (file)
@@ -155,7 +155,7 @@ class ServicesApiDelegateImplTest {
     }\r
 \r
     @Test\r
-    void putServiceWhenIoException_shouldThrowExceptionAndNoServiceCreated() throws Exception {\r
+    void putServiceWhenIoExceptionAddingHeader_shouldThrowExceptionAndNoServiceCreated() throws Exception {\r
         ServicesApiDelegateImpl delegateUnderTest = new ServicesApiDelegateImpl(webRequestMock);\r
 \r
         whenGetRequestUrlThenReturnUrl();\r
@@ -172,7 +172,8 @@ class ServicesApiDelegateImplTest {
             delegateUnderTest.putIndividualService(SERVICE_NAME, service);\r
         });\r
 \r
-        assertThat(exception.getMessage()).isEqualTo("Unable to set header Location in response. Cause: Error");\r
+        assertThat(exception.getMessage())\r
+            .isEqualTo("Unable to set header Location in put response for service " + SERVICE_NAME + ". Cause: Error");\r
 \r
         ResponseEntity<List<Service>> response = delegateUnderTest.getServices();\r
         assertThat(response.getBody()).isEmpty();\r
@@ -206,7 +207,7 @@ class ServicesApiDelegateImplTest {
         assertThat(services).hasSize(2);\r
         List<String> expectedServiceNames = Arrays.asList(serviceName1, serviceName2);\r
         assertThat(expectedServiceNames).contains(services.get(0).getName()) //\r
-                                        .contains(services.get(1).getName());\r
+            .contains(services.get(1).getName());\r
     }\r
 \r
     @Test\r