示例#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 static void cleanupFailed(Throwable error, Object target) {
   handler.error(UNKNOWN, error, null);
 }
示例#3
0
 public static void unknownErrorRecovery(Severity severity, Throwable error) {
   handler.error(severity, error, "unexpected error");
 }
示例#4
0
 public static void illegalCaseRecovery(Severity severity, String description) {
   handler.error(severity, null, description);
 }
示例#5
0
 public static void listenerFailed(Throwable error, Object listener, String event) {
   handler.error(UNKNOWN, error, event);
 }
示例#6
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());
 }