Last active
December 14, 2015 03:49
-
-
Save lfryc/5023545 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FacesInspection { | |
@ApplyRequestValues | |
public void apply_request_values() { | |
// create me new magic component | |
applyValue("#{newMember.name}", "Joe Deer"); | |
} | |
/* | |
@Overriden | |
public void apply_request_values(Applier applier) { | |
// create me new magic component | |
applier.applyValue("#{newMember.name}", "Joe Deer"); | |
} | |
*/ | |
@AfterPhase(PROCESS_VALIDATION) | |
public void test() { | |
FacesMessage[] messages = getValidationErrors("#{newMember.name}"); | |
} | |
@InvokeApplication | |
public void execute_bean() { | |
String outcome = executeAction("#{memberRegistry.register(newMember)}"); | |
} | |
@RenderResponse | |
public void check_expected_return_values() { | |
assertEquals("Joe Deer", getValue("#{flashContext.newMember.name}")); | |
verify(httpServletResponse).sendRedirect(any(String.class)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment