3232import com ._4point .aem .fluentforms .api .generatePDF .GeneratePDFService ;
3333import com ._4point .aem .fluentforms .api .output .OutputService ;
3434import com ._4point .aem .fluentforms .api .pdfUtility .PdfUtilityService ;
35- import com ._4point .aem .fluentforms .spring .rest_services .client .SpringRestClientRestClient ;
3635
3736@ SpringBootTest (classes = {FluentFormsJerseyAutoConfigurationTest .TestApplication .class , FluentFormsJerseyAutoConfiguration .class , FluentFormsAutoConfiguration .class },
3837 properties = {
@@ -158,40 +157,42 @@ private static String inputStreamToString(InputStream inputStream) throws IOExce
158157 return result ;
159158 }
160159
161- @ SpringBootTest (classes = {FluentFormsJerseyAutoConfigurationTest .TestApplication .class , FluentFormsAutoConfiguration .class },
162- properties = {
163- "fluentforms.aem.servername=localhost" ,
164- "fluentforms.aem.port=4502" ,
165- "fluentforms.aem.user=admin" ,
166- "fluentforms.aem.password=admin" ,
167- "fluentforms.restclient=springrestclient" // Configure for Spring RestClient
168- })
169- public static class SpringRestClientTest {
170-
171- @ Test
172- void testRestClientFactory (@ Autowired RestClientFactory factory , @ Autowired AemConfiguration config ) {
173- RestClient client = factory .apply (toAemConfig (config ) , "testRestClientFactory" , ()->"correlationId" );
174- assertTrue (client instanceof SpringRestClientRestClient , "RestClientFactory should return a SpringRestClientRestClient when configured to do so" );
175- }
176- }
160+ // TODO: For now we are going to ignore mixed scenarios (where we are using one starter with a different rest client
161+ // @SpringBootTest(classes = {FluentFormsJerseyAutoConfigurationTest.TestApplication.class, FluentFormsAutoConfiguration.class},
162+ // properties = {
163+ // "fluentforms.aem.servername=localhost",
164+ // "fluentforms.aem.port=4502",
165+ // "fluentforms.aem.user=admin",
166+ // "fluentforms.aem.password=admin",
167+ // "fluentforms.restclient=springrestclient" // Configure for Spring RestClient
168+ // })
169+ // public static class SpringRestClientTest {
170+ //
171+ // @Test
172+ // void testRestClientFactory(@Autowired RestClientFactory factory, @Autowired AemConfiguration config) {
173+ // RestClient client = factory.apply(toAemConfig(config) , "testRestClientFactory", ()->"correlationId");
174+ // assertTrue(client instanceof SpringRestClientRestClient, "RestClientFactory should return a SpringRestClientRestClient when configured to do so");
175+ // }
176+ // }
177177
178- @ SpringBootTest (classes = {FluentFormsJerseyAutoConfigurationTest .TestApplication .class , FluentFormsAutoConfiguration .class },
179- properties = {
180- "fluentforms.aem.servername=localhost" ,
181- "fluentforms.aem.port=4502" ,
182- "fluentforms.aem.user=admin" ,
183- "fluentforms.aem.password=admin" ,
184- "fluentforms.aem.usessl=true" ,
185- "fluentforms.restclient=springrestclient" // Configure for Spring RestClient
186- })
187- public static class SpringRestClient_SslNoBundleNameTest {
188-
189- @ Test
190- void testRestClientFactory (@ Autowired RestClientFactory factory , @ Autowired AemConfiguration config ) {
191- RestClient client = factory .apply (toAemConfig (config ) , "testRestClientFactory" , ()->"correlationId" );
192- assertTrue (client instanceof SpringRestClientRestClient , "RestClientFactory should return a SpringRestClientRestClient when configured to do so" );
193- }
194- }
178+ // TODO: For now we are going to ignore mixed scenarios (where we are using one starter with a different rest client
179+ // @SpringBootTest(classes = {FluentFormsJerseyAutoConfigurationTest.TestApplication.class, FluentFormsAutoConfiguration.class},
180+ // properties = {
181+ // "fluentforms.aem.servername=localhost",
182+ // "fluentforms.aem.port=4502",
183+ // "fluentforms.aem.user=admin",
184+ // "fluentforms.aem.password=admin",
185+ // "fluentforms.aem.usessl=true",
186+ // "fluentforms.restclient=springrestclient" // Configure for Spring RestClient
187+ // })
188+ // public static class SpringRestClient_SslNoBundleNameTest {
189+ //
190+ // @Test
191+ // void testRestClientFactory(@Autowired RestClientFactory factory, @Autowired AemConfiguration config) {
192+ // RestClient client = factory.apply(toAemConfig(config) , "testRestClientFactory", ()->"correlationId");
193+ // assertTrue(client instanceof SpringRestClientRestClient, "RestClientFactory should return a SpringRestClientRestClient when configured to do so");
194+ // }
195+ // }
195196
196197 @ SpringBootTest (classes = {FluentFormsJerseyAutoConfigurationTest .TestApplication .class , FluentFormsJerseyAutoConfiguration .class , FluentFormsAutoConfiguration .class },
197198 properties = {
@@ -212,26 +213,27 @@ void testRestClientFactory(@Autowired RestClientFactory factory, @Autowired AemC
212213 }
213214 }
214215
215- @ SpringBootTest (classes = {FluentFormsJerseyAutoConfigurationTest .TestApplication .class , FluentFormsAutoConfiguration .class },
216- properties = {
217- "fluentforms.aem.servername=localhost" ,
218- "fluentforms.aem.port=4502" ,
219- "fluentforms.aem.user=admin" ,
220- "fluentforms.aem.password=admin" ,
221- "fluentforms.aem.usessl=true" ,
222- "spring.ssl.bundle.jks.aem.truststore.location=file:src/test/resources/aemforms.p12" ,
223- "spring.ssl.bundle.jks.aem.truststore.password=Pa$$123" ,
224- "spring.ssl.bundle.jks.aem.truststore.type=PKCS12" ,
225- "fluentforms.restclient=springrestclient" // Configure for Spring RestClient
226- })
227- public static class SpringRestClient_SslBundleTest {
228-
229- @ Test
230- void testRestClientFactory (@ Autowired RestClientFactory factory , @ Autowired AemConfiguration config ) {
231- RestClient client = factory .apply (toAemConfig (config ) , "testRestClientFactory" , ()->"correlationId" );
232- assertTrue (client instanceof SpringRestClientRestClient , "RestClientFactory should return a SpringRestClientRestClient when configured to do so" );
233- }
234- }
216+ // TODO: For now we are going to ignore mixed scenarios (where we are using one starter with a different rest client
217+ // @SpringBootTest(classes = {FluentFormsJerseyAutoConfigurationTest.TestApplication.class, FluentFormsAutoConfiguration.class},
218+ // properties = {
219+ // "fluentforms.aem.servername=localhost",
220+ // "fluentforms.aem.port=4502",
221+ // "fluentforms.aem.user=admin",
222+ // "fluentforms.aem.password=admin",
223+ // "fluentforms.aem.usessl=true",
224+ // "spring.ssl.bundle.jks.aem.truststore.location=file:src/test/resources/aemforms.p12",
225+ // "spring.ssl.bundle.jks.aem.truststore.password=Pa$$123",
226+ // "spring.ssl.bundle.jks.aem.truststore.type=PKCS12",
227+ // "fluentforms.restclient=springrestclient" // Configure for Spring RestClient
228+ // })
229+ // public static class SpringRestClient_SslBundleTest {
230+ //
231+ // @Test
232+ // void testRestClientFactory(@Autowired RestClientFactory factory, @Autowired AemConfiguration config) {
233+ // RestClient client = factory.apply(toAemConfig(config) , "testRestClientFactory", ()->"correlationId");
234+ // assertTrue(client instanceof SpringRestClientRestClient, "RestClientFactory should return a SpringRestClientRestClient when configured to do so");
235+ // }
236+ // }
235237
236238 @ SpringBootTest (classes = {FluentFormsJerseyAutoConfigurationTest .TestApplication .class , FluentFormsAutoConfiguration .class },
237239 properties = {
0 commit comments