use of com.sun.ts.tests.jsf.api.jakarta_faces.event.common.TestSystemEventListener in project faces by jakartaee.
the class TestServlet method preRemoveFromViewEventIsApproiateListenerPostiveTest.
// ------------------------------------------------------------
// PreRemoveFromViewEvent Tests
public void preRemoveFromViewEventIsApproiateListenerPostiveTest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter pw = response.getWriter();
SystemEventListener testListener = new TestSystemEventListener();
ComponentSystemEvent cse = createEvent(getTestComponent());
String eventName = cse.getClass().getName();
if (cse.isAppropriateListener(testListener)) {
pw.println(JSFTestUtil.PASS);
} else {
pw.println("Test FAILED. " + eventName + ".isAppropriateListener " + "did not return true when SystemEventListener was passed in " + "as a parameter");
}
}
use of com.sun.ts.tests.jsf.api.jakarta_faces.event.common.TestSystemEventListener in project faces by jakartaee.
the class TestServlet method postAddToViewEventIsApproiateListenerPostiveTest.
// ------------------------------------------------------------
// PostAddToViewEvent Tests
public void postAddToViewEventIsApproiateListenerPostiveTest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter pw = response.getWriter();
SystemEventListener testListener = new TestSystemEventListener();
ComponentSystemEvent cse = createEvent(getTestComponent());
String eventName = cse.getClass().getName();
if (cse.isAppropriateListener(testListener)) {
pw.println(JSFTestUtil.PASS);
} else {
pw.println("Test FAILED. " + eventName + ".isAppropriateListener " + "did not return true when SystemEventListener was passed in " + "as a parameter");
}
}
Aggregations