@@ -223,7 +223,7 @@ public void pushsession() {
223223 try {
224224 connectLib .Logger ().showLogs ();
225225 connectLib .init (ResourceType .TEST_RESOURCES , LangType .ENGLISH , TestRoutes .class )
226- .wanImplement ("http://localhost:8080 " , "TestDashboard" );
226+ .wanImplement ("http://localhost:3000 " , "TestDashboard" );
227227
228228 Thread .sleep (20000 );
229229
@@ -236,8 +236,8 @@ public void pushsession() {
236236 public void startAppServices () {
237237 try {
238238 connectLib .Logger ().showLogs ();
239- connectLib .init (ResourceType .TEST_RESOURCES , LangType .ENGLISH , TestRoutes .class );
240- // .wanImplement("localhost:3000", "Connectlib3");
239+ connectLib .init (ResourceType .TEST_RESOURCES , LangType .ENGLISH , TestRoutes .class )
240+ .wanImplement ("localhost:3000" , "Connectlib3" );
241241 //.webServices(8080, "TestDashboard");
242242
243243 CompletableFuture <ClassheritFromFactory > apiFactoryCompletableFuture = connectLib .JobGetInfos ()
@@ -252,15 +252,14 @@ public void startAppServices() {
252252
253253 Thread .sleep (10000 );
254254
255- apiFactoryCompletableFuture = connectLib .JobGetInfos ()
256- .getRoutes (MethodType .GET , TestRoutes .HELLO )
257- .urlBranch (ExampleUrlBranch .POST_PROD )
258- .execute ()
259- .thenApply (ClassheritFromFactory ::new );
255+ CompletableFuture <ApiFactory > apiFactoryCompletableFuture2 = connectLib .JobGetInfos ()
256+ .getRoutes (TestCustomVersion .V1_API , MethodType .GET , TestRoutes .REQUEST_TOKEN )
257+ .urlBranch (ExampleUrlBranch .PROD )
258+ .execute ();
260259
261- ClassheritFromFactory classheritFromFactory2 = apiFactoryCompletableFuture .get (5 , TimeUnit .SECONDS );
260+ fr . sandro642 . github . api . ApiFactory apiFactory = apiFactoryCompletableFuture2 .get (5 , TimeUnit .SECONDS );
262261
263- System .out .println ("Response: " + classheritFromFactory2 . getContent ());
262+ System .out .println ("Response: " + apiFactory . display ());
264263
265264 Thread .sleep (200000 );
266265
0 commit comments