test_class.file: apps/cookbook-examples/src/test/java/org/apache/commons/chain2/cookbook/profile/ProfileCheckTest.java
test_class.identifier: ProfileCheckTest
test_case.body: @Test
      public void testProfileCheckNeed() {
  
          ProfileContext context = new ProfileContext();
          Command<String, Object, ProfileContext> command = new ProfileCheck();
  
          command.execute(context);
  
          Profile profile = context.getProfile();
          assertNotNull("Missing org.apache.commons.chain2.cookbook.profile.Profile", profile);
      }
test_case.class_method_signature: ProfileCheckTest.testProfileCheckNeed()
test_case.full_signature: @Test public void testProfileCheckNeed()
test_case.identifier: testProfileCheckNeed
test_case.invocations: execute getProfile assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testProfileCheckNeed()
focal_class.file: apps/cookbook-examples/src/main/java/org/apache/commons/chain2/cookbook/profile/ProfileCheck.java
focal_class.identifier: ProfileCheck
focal_class.interfaces: implements Command<String, Object, ProfileContext>
focal_class.class_method_signature: ProfileCheck.newProfile(ProfileContext context)
focal_class.full_signature: public Profile newProfile(ProfileContext context)
focal_class.identifier: newProfile
focal_class.modifiers: public
focal_class.parameters: (ProfileContext context)
focal_class.return: Profile
focal_class.signature: Profile newProfile(ProfileContext context)
focal_class.class_method_signature: ProfileCheck.execute(ProfileContext context)
focal_class.full_signature: public Processing execute(ProfileContext context)
focal_class.identifier: execute
focal_class.modifiers: public
focal_class.parameters: (ProfileContext context)
focal_class.return: Processing
focal_class.signature: Processing execute(ProfileContext context)
focal_method.body: public Processing execute(ProfileContext context) {
          Profile profile = context.getProfile();
  
          if (null == profile) {
              context.setProfile(newProfile(context));
          }
          return Processing.CONTINUE;
      }
focal_method.class_method_signature: ProfileCheck.execute(ProfileContext context)
focal_method.full_signature: public Processing execute(ProfileContext context)
focal_method.identifier: execute
focal_method.invocations: getProfile setProfile newProfile
focal_method.modifiers: public
focal_method.parameters: (ProfileContext context)
focal_method.return: Processing
focal_method.signature: Processing execute(ProfileContext context)