@Test public void attachAccountInfo() { }
public static void attachAccountInfo(Account account, String html){ account.setNotifications(matcherGroup1Int( Pattern.compile("<a href=\"/notifications\">(\\d+) 条未读提醒</a>"), html)); account.setFavorNodes(matcherGroup1Int(PATTERN_FAVOR_NODES, html)); account.setFavorTopics(matcherGroup1Int(PATTERN_FAVOR_TOPIC, html)); account.setFollowing(matcherGroup1Int(PATTERN_FOLLOWING, html)); account.setNotifications(matcherGroup1Int(PATTERN_NOTIFICATIONS, html)); account.setJoin(matcherGroup1(PATTERN_JOIN, html)); account.setNumber(matcherGroup1(PATTERN_NUMBER, html)); account.setGold(matcherGroup1Int(PATTERN_GOLD, html)); account.setSilver(matcherGroup1Int(PATTERN_SILVER , html)); account.setBronze(matcherGroup1Int(PATTERN_BRONZE, html)); account.setBalance(account.getBronze()+account.getSilver()*100+account.getGold()*10000); }
HtmlUtil { public static void attachAccountInfo(Account account, String html){ account.setNotifications(matcherGroup1Int( Pattern.compile("<a href=\"/notifications\">(\\d+) 条未读提醒</a>"), html)); account.setFavorNodes(matcherGroup1Int(PATTERN_FAVOR_NODES, html)); account.setFavorTopics(matcherGroup1Int(PATTERN_FAVOR_TOPIC, html)); account.setFollowing(matcherGroup1Int(PATTERN_FOLLOWING, html)); account.setNotifications(matcherGroup1Int(PATTERN_NOTIFICATIONS, html)); account.setJoin(matcherGroup1(PATTERN_JOIN, html)); account.setNumber(matcherGroup1(PATTERN_NUMBER, html)); account.setGold(matcherGroup1Int(PATTERN_GOLD, html)); account.setSilver(matcherGroup1Int(PATTERN_SILVER , html)); account.setBronze(matcherGroup1Int(PATTERN_BRONZE, html)); account.setBalance(account.getBronze()+account.getSilver()*100+account.getGold()*10000); } }
HtmlUtil { public static void attachAccountInfo(Account account, String html){ account.setNotifications(matcherGroup1Int( Pattern.compile("<a href=\"/notifications\">(\\d+) 条未读提醒</a>"), html)); account.setFavorNodes(matcherGroup1Int(PATTERN_FAVOR_NODES, html)); account.setFavorTopics(matcherGroup1Int(PATTERN_FAVOR_TOPIC, html)); account.setFollowing(matcherGroup1Int(PATTERN_FOLLOWING, html)); account.setNotifications(matcherGroup1Int(PATTERN_NOTIFICATIONS, html)); account.setJoin(matcherGroup1(PATTERN_JOIN, html)); account.setNumber(matcherGroup1(PATTERN_NUMBER, html)); account.setGold(matcherGroup1Int(PATTERN_GOLD, html)); account.setSilver(matcherGroup1Int(PATTERN_SILVER , html)); account.setBronze(matcherGroup1Int(PATTERN_BRONZE, html)); account.setBalance(account.getBronze()+account.getSilver()*100+account.getGold()*10000); }  }
HtmlUtil { public static void attachAccountInfo(Account account, String html){ account.setNotifications(matcherGroup1Int( Pattern.compile("<a href=\"/notifications\">(\\d+) 条未读提醒</a>"), html)); account.setFavorNodes(matcherGroup1Int(PATTERN_FAVOR_NODES, html)); account.setFavorTopics(matcherGroup1Int(PATTERN_FAVOR_TOPIC, html)); account.setFollowing(matcherGroup1Int(PATTERN_FOLLOWING, html)); account.setNotifications(matcherGroup1Int(PATTERN_NOTIFICATIONS, html)); account.setJoin(matcherGroup1(PATTERN_JOIN, html)); account.setNumber(matcherGroup1(PATTERN_NUMBER, html)); account.setGold(matcherGroup1Int(PATTERN_GOLD, html)); account.setSilver(matcherGroup1Int(PATTERN_SILVER , html)); account.setBronze(matcherGroup1Int(PATTERN_BRONZE, html)); account.setBalance(account.getBronze()+account.getSilver()*100+account.getGold()*10000); }  static String[] getLoginFieldName(String html); static int getOnceFromPostTopicPage(String html); static int getOnceFromSignInPage(String html); static List<Topic> getTopics(String html); static Topic getTopicAndReplies(String html); static List<Reply> getReplies(String html); static void attachCreatedTopics(Member member, String html); static void attachAccountInfo(Account account, String html); static String applyHtmlStyle(String html, Context context); static String matcherGroup1(Pattern pattern, String str); static int matcherGroup1Int(Pattern pattern, String str); }
HtmlUtil { public static void attachAccountInfo(Account account, String html){ account.setNotifications(matcherGroup1Int( Pattern.compile("<a href=\"/notifications\">(\\d+) 条未读提醒</a>"), html)); account.setFavorNodes(matcherGroup1Int(PATTERN_FAVOR_NODES, html)); account.setFavorTopics(matcherGroup1Int(PATTERN_FAVOR_TOPIC, html)); account.setFollowing(matcherGroup1Int(PATTERN_FOLLOWING, html)); account.setNotifications(matcherGroup1Int(PATTERN_NOTIFICATIONS, html)); account.setJoin(matcherGroup1(PATTERN_JOIN, html)); account.setNumber(matcherGroup1(PATTERN_NUMBER, html)); account.setGold(matcherGroup1Int(PATTERN_GOLD, html)); account.setSilver(matcherGroup1Int(PATTERN_SILVER , html)); account.setBronze(matcherGroup1Int(PATTERN_BRONZE, html)); account.setBalance(account.getBronze()+account.getSilver()*100+account.getGold()*10000); }  static String[] getLoginFieldName(String html); static int getOnceFromPostTopicPage(String html); static int getOnceFromSignInPage(String html); static List<Topic> getTopics(String html); static Topic getTopicAndReplies(String html); static List<Reply> getReplies(String html); static void attachCreatedTopics(Member member, String html); static void attachAccountInfo(Account account, String html); static String applyHtmlStyle(String html, Context context); static String matcherGroup1(Pattern pattern, String str); static int matcherGroup1Int(Pattern pattern, String str);  }