コード例 #1
0
  public void testFileBug() {
    handler.doCommand(Message.createForTests("/bug I don't like this behavior"));

    assertEquals(1, xmpp.messages.size());
    assertEquals(
        "http://code.google.com/p/partychapp/issues/entry?summary=I+don%27t+like+this+behavior&comment=Filed+by+user+neil+from+channel+pancake",
        xmpp.messages.get(0).getBody());
  }
コード例 #2
0
 public void testFileBugNoArgs() {
   handler.doCommand(Message.createForTests("/bug"));
   assertEquals(1, xmpp.messages.size());
   assertEquals("You must specify a bug summary", xmpp.messages.get(0).getBody());
 }