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