@Test public void isActive() throws Exception { when(documentAccessBridge.getCurrentDocumentReference()).thenReturn( new DocumentReference("wikiA", "Space", "Page"), new DocumentReference("wikiB", "Space", "Page")); when(messageStreamConfiguration.isActive("wikiA")).thenReturn(true); when(messageStreamConfiguration.isActive("wikiB")).thenReturn(false); assertTrue(mocker.getComponentUnderTest().isActive()); assertFalse(mocker.getComponentUnderTest().isActive()); }
public boolean isActive() { return messageStreamConfiguration.isActive( documentAccessBridge.getCurrentDocumentReference().getWikiReference().getName() ); }
MessageStreamScriptService implements ScriptService { public boolean isActive() { return messageStreamConfiguration.isActive( documentAccessBridge.getCurrentDocumentReference().getWikiReference().getName() ); } }
MessageStreamScriptService implements ScriptService { public boolean isActive() { return messageStreamConfiguration.isActive( documentAccessBridge.getCurrentDocumentReference().getWikiReference().getName() ); }  }
MessageStreamScriptService implements ScriptService { public boolean isActive() { return messageStreamConfiguration.isActive( documentAccessBridge.getCurrentDocumentReference().getWikiReference().getName() ); }  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 isActive() { return messageStreamConfiguration.isActive( documentAccessBridge.getCurrentDocumentReference().getWikiReference().getName() ); }  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();  }