mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 20:50:44 +00:00
CE-1887 expose to reset additional endpointGroups / javalinRoutes
This commit is contained in:
@ -78,6 +78,7 @@ class QJavalinApiHandlerPermissionsTest extends BaseTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
qJavalinImplementation = new QJavalinImplementation(qInstance);
|
qJavalinImplementation = new QJavalinImplementation(qInstance);
|
||||||
|
qJavalinImplementation.clearJavalinRoutes();
|
||||||
EndpointGroup routes = new QJavalinApiHandler(qInstance).getRoutes();
|
EndpointGroup routes = new QJavalinApiHandler(qInstance).getRoutes();
|
||||||
qJavalinImplementation.addJavalinRoutes(routes);
|
qJavalinImplementation.addJavalinRoutes(routes);
|
||||||
qJavalinImplementation.startJavalinServer(PORT);
|
qJavalinImplementation.startJavalinServer(PORT);
|
||||||
|
@ -112,6 +112,7 @@ class QJavalinApiHandlerTest extends BaseTest
|
|||||||
.withInitialVersion(TestUtils.V2022_Q4))));
|
.withInitialVersion(TestUtils.V2022_Q4))));
|
||||||
|
|
||||||
qJavalinImplementation = new QJavalinImplementation(qInstance);
|
qJavalinImplementation = new QJavalinImplementation(qInstance);
|
||||||
|
qJavalinImplementation.clearJavalinRoutes();
|
||||||
EndpointGroup routes = new QJavalinApiHandler(qInstance).getRoutes();
|
EndpointGroup routes = new QJavalinApiHandler(qInstance).getRoutes();
|
||||||
qJavalinImplementation.addJavalinRoutes(routes);
|
qJavalinImplementation.addJavalinRoutes(routes);
|
||||||
qJavalinImplementation.startJavalinServer(PORT);
|
qJavalinImplementation.startJavalinServer(PORT);
|
||||||
|
@ -1955,4 +1955,16 @@ public class QJavalinImplementation
|
|||||||
}
|
}
|
||||||
endpointGroups.add(routes);
|
endpointGroups.add(routes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
** if restarting this class, and you want to re-run addJavalinRoutes, but
|
||||||
|
** not create duplicates, well, you might want to call this method!
|
||||||
|
***************************************************************************/
|
||||||
|
public void clearJavalinRoutes()
|
||||||
|
{
|
||||||
|
endpointGroups = null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user