1111@ SpringBootTest (webEnvironment = WebEnvironment .RANDOM_PORT ,
1212 properties = "cds.remote.services.'[API_BUSINESS_PARTNER]'.destination.name=myself-NotesServiceITest" )
1313@ ActiveProfiles ({"default" , "mocked" })
14- public class NotesServiceITest {
14+ class NotesServiceITest {
1515
1616 private static final String notesURI = "/api/notes/Notes" ;
1717 private static final String addressesURI = "/api/notes/Addresses" ;
@@ -20,7 +20,7 @@ public class NotesServiceITest {
2020 private WebTestClient client ;
2121
2222 @ Test
23- public void testGetNotes () throws Exception {
23+ void testGetNotes () throws Exception {
2424 client .get ().uri (notesURI ).headers (this ::authenticatedCredentials ).exchange ()
2525 .expectStatus ().isOk ()
2626 .expectBody ()
@@ -40,7 +40,7 @@ public void testGetNotes() throws Exception {
4040 }
4141
4242 @ Test
43- public void testGetAddresses () throws Exception {
43+ void testGetAddresses () throws Exception {
4444 client .get ().uri (addressesURI + "?$filter=businessPartner eq '10401010'" ).headers (this ::authenticatedCredentials ).exchange ()
4545 .expectStatus ().isOk ()
4646 .expectBody ()
@@ -54,7 +54,7 @@ public void testGetAddresses() throws Exception {
5454 }
5555
5656 @ Test
57- public void testGetNoteWithAddress () throws Exception {
57+ void testGetNoteWithAddress () throws Exception {
5858 client .get ().uri (notesURI + "?$expand=address" ).headers (this ::authenticatedCredentials ).exchange ()
5959 .expectStatus ().isOk ()
6060 .expectBody ()
@@ -83,7 +83,7 @@ public void testGetNoteWithAddress() throws Exception {
8383 }
8484
8585 @ Test
86- public void testGetSuppliersWithNotes () throws Exception {
86+ void testGetSuppliersWithNotes () throws Exception {
8787 client .get ().uri (addressesURI + "?$expand=notes($orderby=ID)&$filter=businessPartner eq '10401010'" ).headers (this ::authenticatedCredentials ).exchange ()
8888 .expectStatus ().isOk ()
8989 .expectBody ()
@@ -108,7 +108,7 @@ public void testGetSuppliersWithNotes() throws Exception {
108108 }
109109
110110 @ Test
111- public void testGetNotesToSupplier () throws Exception {
111+ void testGetNotesToSupplier () throws Exception {
112112 client .get ().uri (notesURI + "(ID=5efc842c-c70d-4ee2-af1d-81c7d257aff7,IsActiveEntity=true)/address" ).headers (this ::authenticatedCredentials ).exchange ()
113113 .expectStatus ().isOk ()
114114 .expectBody ()
@@ -119,7 +119,7 @@ public void testGetNotesToSupplier() throws Exception {
119119 }
120120
121121 @ Test
122- public void testGetSupplierToNotes () throws Exception {
122+ void testGetSupplierToNotes () throws Exception {
123123 client .get ().uri (addressesURI + "(businessPartner='10401010',ID='100')/notes" ).headers (this ::authenticatedCredentials ).exchange ()
124124 .expectStatus ().isOk ()
125125 .expectBody ()
@@ -135,7 +135,7 @@ public void testGetSupplierToNotes() throws Exception {
135135 }
136136
137137 @ Test
138- public void testGetSupplierToSpecificNote () throws Exception {
138+ void testGetSupplierToSpecificNote () throws Exception {
139139 client .get ().uri (addressesURI + "(businessPartner='10401010',ID='100')/notes(ID=83e2643b-aecc-47d3-9f85-a8ba14eff07d,IsActiveEntity=true)" )
140140 .headers (this ::authenticatedCredentials )
141141 .exchange ()
@@ -148,7 +148,7 @@ public void testGetSupplierToSpecificNote() throws Exception {
148148 }
149149
150150 @ Test
151- public void testGetNotesWithNestedExpands () throws Exception {
151+ void testGetNotesWithNestedExpands () throws Exception {
152152 client .get ().uri (notesURI + "?$select=note&$expand=address($select=postalCode;$expand=notes($select=note))&$top=1" ).headers (this ::authenticatedCredentials ).exchange ()
153153 .expectStatus ().isOk ()
154154 .expectBody ()
@@ -164,7 +164,7 @@ public void testGetNotesWithNestedExpands() throws Exception {
164164 }
165165
166166 @ Test
167- public void testGetAddressesWithNestedExpands () throws Exception {
167+ void testGetAddressesWithNestedExpands () throws Exception {
168168 client .get ().uri (addressesURI + "?$select=postalCode&$expand=notes($select=note;$expand=address($select=postalCode))&$filter=businessPartner eq '1000020'" )
169169 .headers (this ::authenticatedCredentials )
170170 .exchange ()
0 commit comments