@@ -186,7 +186,7 @@ public static void setupClass() throws Exception {
186186 // no environment found, create a new one (assuming we are a FREE plan)
187187 String environmentName = "watson_developer_cloud_test_environment" ;
188188 CreateEnvironmentOptions createOptions = new CreateEnvironmentOptions .Builder ()
189- .name (environmentName ).size ( FREE ). build ();
189+ .name (environmentName ).build ();
190190 Environment createResponse = dummyTest .discovery .createEnvironment (createOptions ).execute ();
191191 environmentId = createResponse .getEnvironmentId ();
192192 WaitFor .Condition environmentReady = new EnvironmentReady (dummyTest .discovery , environmentId );
@@ -274,7 +274,6 @@ public void exampleIsSuccessful() {
274274 String environmentName = "watson_developer_cloud_test_environment" ;
275275 CreateEnvironmentOptions createOptions = new CreateEnvironmentOptions .Builder ()
276276 .name (environmentName )
277- .size (0L ) /* FREE */
278277 .build ();
279278 Environment createResponse = discovery .createEnvironment (createOptions ).execute ();
280279 environmentId = createResponse .getEnvironmentId ();
@@ -449,8 +448,7 @@ public void listEnvironmentsByNameIsSuccessful() {
449448 @ Ignore ("Only 1 BYOD environment allowed per service instance, so we cannot create more" )
450449 public void createEnvironmentIsSuccessful () {
451450 String environmentName = uniqueName + "-environment" ;
452- CreateEnvironmentOptions createOptions = new CreateEnvironmentOptions .Builder ().name (environmentName ).size (FREE )
453- .build ();
451+ CreateEnvironmentOptions createOptions = new CreateEnvironmentOptions .Builder ().name (environmentName ).build ();
454452 Environment createResponse = createEnvironment (createOptions );
455453
456454 assertEquals (environmentName , createResponse .getName ());
@@ -460,8 +458,7 @@ public void createEnvironmentIsSuccessful() {
460458 @ Ignore ("Only 1 BYOD environment allowed per service instance, so do not delete it" )
461459 public void deleteEnvironmentIsSuccessful () {
462460 String environmentName = uniqueName + "-environment" ;
463- CreateEnvironmentOptions createOptions = new CreateEnvironmentOptions .Builder ().name (environmentName ).size (FREE )
464- .build ();
461+ CreateEnvironmentOptions createOptions = new CreateEnvironmentOptions .Builder ().name (environmentName ).build ();
465462 Environment createResponse = createEnvironment (createOptions );
466463
467464 DeleteEnvironmentOptions deleteOptions = new DeleteEnvironmentOptions .Builder (createResponse .getEnvironmentId ())
@@ -473,8 +470,7 @@ public void deleteEnvironmentIsSuccessful() {
473470 @ Ignore ("Only 1 BYOD environment allowed per service instance, so we cannot create more" )
474471 public void updateEnvironmentIsSuccessful () {
475472 String environmentName = uniqueName + "-environment" ;
476- CreateEnvironmentOptions createOptions = new CreateEnvironmentOptions .Builder ().name (environmentName ).size (FREE )
477- .build ();
473+ CreateEnvironmentOptions createOptions = new CreateEnvironmentOptions .Builder ().name (environmentName ).build ();
478474 Environment createResponse = createEnvironment (createOptions );
479475
480476 String randomDescription = UUID .randomUUID ().toString () + " appbuilder tests" ;
0 commit comments