コード例 #1
0
  public void testSetRelative() {
    ActionResponseIF response = new ActionResponse(null, null);
    response.setForward("bogus.jsp");

    assertTrue(
        "forward is not 'bogus.jsp', but '" + response.getForward() + "'",
        response.getForward().equals("bogus.jsp"));
  }
コード例 #2
0
 public void testNullDefaultForward() {
   ActionResponseIF response = new ActionResponse(null, null);
   assertTrue("forward is not null by default", response.getForward() == null);
 }