test_class.file: lang/src/test/java/org/eclipse/steady/goals/SpaceNewGoalTest.java
test_class.identifier: SpaceNewGoalTest
test_class.superclass: extends AbstractGoalTest
test_case.body: @Test
    public void testNewSpace() throws GoalConfigurationException, GoalExecutionException {
      // Mock REST services
      this.configureBackendServiceUrl(server);
      this.setupMockSpaceServices(testSpace);
  
      // Set config
      this.vulasConfiguration.setProperty(
          CoreConfiguration.TENANT_TOKEN, testTenant.getTenantToken());
      this.vulasConfiguration.setProperty(CoreConfiguration.SPACE_NAME, testSpace.getSpaceName());
      this.vulasConfiguration.setProperty(
          CoreConfiguration.SPACE_DESCR, testSpace.getSpaceDescription());
  
      // Execute goal
      final AbstractGoal goal = GoalFactory.create(GoalType.SPACENEW, GoalClient.CLI);
      goal.setConfiguration(this.vulasConfiguration).executeSync();
  
      final Space new_space = (Space) goal.getResultObject();
      assertEquals(testSpace, new_space);
  
      // Check the HTTP calls made
      verifyHttp(server).times(1, method(Method.POST), uri("/backend" + PathBuilder.spaces()));
      verifyHttp(server)
          .times(
              0,
              method(Method.POST),
              uri("/backend" + PathBuilder.goalExcecutions(null, testSpace, null)));
    }
test_case.class_method_signature: SpaceNewGoalTest.testNewSpace()
test_case.full_signature: @Test public void testNewSpace()
test_case.identifier: testNewSpace
test_case.invocations: configureBackendServiceUrl setupMockSpaceServices setProperty getTenantToken setProperty getSpaceName setProperty getSpaceDescription create executeSync setConfiguration getResultObject assertEquals times verifyHttp method uri spaces times verifyHttp method uri goalExcecutions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNewSpace()
focal_class.declarator: log = org.apache.logging.log4j.LogManager.getLogger()
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = org.apache.logging.log4j.LogManager.getLogger();
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: createdSpace = null
focal_class.modifier: private
focal_class.original_string: private Space createdSpace = null;
focal_class.type: Space
focal_class.var_name: createdSpace
focal_class.file: lang/src/main/java/org/eclipse/steady/goals/SpaceNewGoal.java
focal_class.identifier: SpaceNewGoal
focal_class.class_method_signature: SpaceNewGoal.SpaceNewGoal()
focal_class.full_signature: public  SpaceNewGoal()
focal_class.identifier: SpaceNewGoal
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SpaceNewGoal()
focal_class.class_method_signature: SpaceNewGoal.executeTasks()
focal_class.full_signature: @Override protected void executeTasks()
focal_class.identifier: executeTasks
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void executeTasks()
focal_class.class_method_signature: SpaceNewGoal.getResultObject()
focal_class.full_signature: protected Object getResultObject()
focal_class.identifier: getResultObject
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Object
focal_class.signature: Object getResultObject()
focal_class.superclass: extends AbstractSpaceGoal
focal_method.body: protected Object getResultObject() {
      return this.createdSpace;
    }
focal_method.class_method_signature: SpaceNewGoal.getResultObject()
focal_method.full_signature: protected Object getResultObject()
focal_method.identifier: getResultObject
focal_method.modifiers: protected
focal_method.parameters: ()
focal_method.return: Object
focal_method.signature: Object getResultObject()