@Test public void testGetRecents() { String recents = handler.getRecents(); Assert.assertNotNull(recents); System.out.println(recents); String[] array = recents.split(","); System.out.println(Arrays.toString(array)); assertEquals("filehelper", array[0]); }
public String getRecents() { try { Node node = root.element("op").element("username"); return node.getText().trim(); } catch (Exception e) { return null; } }
InitMsgXmlHandler extends AbstractMsgXmlHandler { public String getRecents() { try { Node node = root.element("op").element("username"); return node.getText().trim(); } catch (Exception e) { return null; } } }
InitMsgXmlHandler extends AbstractMsgXmlHandler { public String getRecents() { try { Node node = root.element("op").element("username"); return node.getText().trim(); } catch (Exception e) { return null; } } InitMsgXmlHandler();  InitMsgXmlHandler(WechatMessage m); }
InitMsgXmlHandler extends AbstractMsgXmlHandler { public String getRecents() { try { Node node = root.element("op").element("username"); return node.getText().trim(); } catch (Exception e) { return null; } } InitMsgXmlHandler();  InitMsgXmlHandler(WechatMessage m); String getRecents(); }
InitMsgXmlHandler extends AbstractMsgXmlHandler { public String getRecents() { try { Node node = root.element("op").element("username"); return node.getText().trim(); } catch (Exception e) { return null; } } InitMsgXmlHandler();  InitMsgXmlHandler(WechatMessage m); String getRecents();  }