in genie-client/src/integTest/java/com/netflix/genie/client/GenieClientIntegrationTestBase.java [77:100]
void setup() throws Exception {
// Just run these once but don't make it a static BeforeAll in case it would be executed before container starts
if (
this.applicationClient == null
|| this.commandClient == null
|| this.clusterClient == null
|| this.jobClient == null
) {
final String baseUrl = "http://" + GENIE.getContainerIpAddress() + ":" + GENIE.getFirstMappedPort();
final Retrofit retrofit = GenieClientUtils.createRetrofitInstance(baseUrl, null, null);
if (this.applicationClient == null) {
this.applicationClient = new ApplicationClient(retrofit);
}
if (this.commandClient == null) {
this.commandClient = new CommandClient(retrofit);
}
if (this.clusterClient == null) {
this.clusterClient = new ClusterClient(retrofit);
}
if (this.jobClient == null) {
this.jobClient = new JobClient(retrofit, 3);
}
}
}