@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); }
public Processing execute(ProfileContext context) { Profile profile = context.getProfile(); if (null == profile) { context.setProfile(newProfile(context)); } return Processing.CONTINUE; }
ProfileCheck implements Command<String, Object, ProfileContext> { public Processing execute(ProfileContext context) { Profile profile = context.getProfile(); if (null == profile) { context.setProfile(newProfile(context)); } return Processing.CONTINUE; } }
ProfileCheck implements Command<String, Object, ProfileContext> { public Processing execute(ProfileContext context) { Profile profile = context.getProfile(); if (null == profile) { context.setProfile(newProfile(context)); } return Processing.CONTINUE; }  }
ProfileCheck implements Command<String, Object, ProfileContext> { public Processing execute(ProfileContext context) { Profile profile = context.getProfile(); if (null == profile) { context.setProfile(newProfile(context)); } return Processing.CONTINUE; }  Profile newProfile(ProfileContext context); Processing execute(ProfileContext context); }
ProfileCheck implements Command<String, Object, ProfileContext> { public Processing execute(ProfileContext context) { Profile profile = context.getProfile(); if (null == profile) { context.setProfile(newProfile(context)); } return Processing.CONTINUE; }  Profile newProfile(ProfileContext context); Processing execute(ProfileContext context);  }