@Test public void testCheckUserInfo() throws Exception { getUserAction().checkUserInfo(user); }
protected void checkUserInfo(User user) { if (StringUtils.isEmpty(user.getUserName())) { System.out.println("user name is null"); return; } else if (StringUtils.isEmpty(user.getPassword())) { System.out.println("password is null"); return; } System.out.println("user info qualified..."); }
UserAction implements SuperActionService { protected void checkUserInfo(User user) { if (StringUtils.isEmpty(user.getUserName())) { System.out.println("user name is null"); return; } else if (StringUtils.isEmpty(user.getPassword())) { System.out.println("password is null"); return; } System.out.println("user info qualified..."); } }
UserAction implements SuperActionService { protected void checkUserInfo(User user) { if (StringUtils.isEmpty(user.getUserName())) { System.out.println("user name is null"); return; } else if (StringUtils.isEmpty(user.getPassword())) { System.out.println("password is null"); return; } System.out.println("user info qualified..."); }  }
UserAction implements SuperActionService { protected void checkUserInfo(User user) { if (StringUtils.isEmpty(user.getUserName())) { System.out.println("user name is null"); return; } else if (StringUtils.isEmpty(user.getPassword())) { System.out.println("password is null"); return; } System.out.println("user info qualified..."); }  void addUser(User user); void demonstrateExecutionPattern(User user, String description); @CustomDeprecatedAnnotation User demonstrateOtherPointcutPatternExpression(User user, String description); User demonstrateAfterThrowingAdviceUsage(User user, String des); }
UserAction implements SuperActionService { protected void checkUserInfo(User user) { if (StringUtils.isEmpty(user.getUserName())) { System.out.println("user name is null"); return; } else if (StringUtils.isEmpty(user.getPassword())) { System.out.println("password is null"); return; } System.out.println("user info qualified..."); }  void addUser(User user); void demonstrateExecutionPattern(User user, String description); @CustomDeprecatedAnnotation User demonstrateOtherPointcutPatternExpression(User user, String description); User demonstrateAfterThrowingAdviceUsage(User user, String des);  }