diff --git a/pom.xml b/pom.xml index 6dbd5c844..3f94d26b7 100644 --- a/pom.xml +++ b/pom.xml @@ -390,7 +390,6 @@ commons-logging commons-logging ${commons-logging.version} - test diff --git a/src/test/java/com/sap/cloudfoundry/client/facade/ServicesCloudControllerClientIntegrationTest.java b/src/test/java/com/sap/cloudfoundry/client/facade/ServicesCloudControllerClientIntegrationTest.java index 838a41ee9..0214c6945 100644 --- a/src/test/java/com/sap/cloudfoundry/client/facade/ServicesCloudControllerClientIntegrationTest.java +++ b/src/test/java/com/sap/cloudfoundry/client/facade/ServicesCloudControllerClientIntegrationTest.java @@ -79,8 +79,13 @@ static void setUp() throws InterruptedException { fail(MessageFormat.format("Specified service broker path \"{0}\" not exists", brokerPathString)); } pushServiceBrokerApplication(brokerPath); - createServiceBroker(IntegrationTestConstants.SERVICE_BROKER_NAME, SERVICE_BROKER_ENDPOINT); - pushedServiceBroker = true; + try { + createServiceBroker(IntegrationTestConstants.SERVICE_BROKER_NAME, SERVICE_BROKER_ENDPOINT); + pushedServiceBroker = true; + + } catch (CloudOperationException e) { + //Ignore because service broker with this name exists + } } @AfterAll