@Test public void postPersonalMessage() throws Exception { assertTrue(this.streamService.postPersonalMessage("Hello World!")); MessageStream stream = this.mocker.getInstance(MessageStream.class); verify(stream).postPersonalMessage("Hello World!"); }
public boolean postPersonalMessage(String message) { try { this.stream.postPersonalMessage(message); return true; } catch (Exception e) { setError(e); return false; } }
MessageStreamScriptService implements ScriptService { public boolean postPersonalMessage(String message) { try { this.stream.postPersonalMessage(message); return true; } catch (Exception e) { setError(e); return false; } } }
MessageStreamScriptService implements ScriptService { public boolean postPersonalMessage(String message) { try { this.stream.postPersonalMessage(message); return true; } catch (Exception e) { setError(e); return false; } }  }
MessageStreamScriptService implements ScriptService { public boolean postPersonalMessage(String message) { try { this.stream.postPersonalMessage(message); return true; } catch (Exception e) { setError(e); return false; } }  boolean postPublicMessage(String message); boolean postPersonalMessage(String message); boolean postDirectMessageToUser(String message, DocumentReference user); boolean postMessageToGroup(String message, DocumentReference group); boolean deleteMessage(String id); boolean isActive(); Exception getLastError(); }
MessageStreamScriptService implements ScriptService { public boolean postPersonalMessage(String message) { try { this.stream.postPersonalMessage(message); return true; } catch (Exception e) { setError(e); return false; } }  boolean postPublicMessage(String message); boolean postPersonalMessage(String message); boolean postDirectMessageToUser(String message, DocumentReference user); boolean postMessageToGroup(String message, DocumentReference group); boolean deleteMessage(String id); boolean isActive(); Exception getLastError();  }