@Override public void setUp() { Blips.init(); }
@Override public void setUp() { Blips.init(); }
@Override protected void setUp() throws Exception { super.setUp(); Blips.init(); }
@Override protected void setUp() throws Exception { super.setUp(); Blips.init(); }
@Override protected void setUp() throws Exception { super.setUp(); Blips.init(); }
@Override protected void setUp() throws Exception { super.setUp(); Blips.init(); }
@Override protected void setUp() throws Exception { Blips.init(); conversation = makeConversation(); }
@Override protected void setUp() throws Exception { Blips.init(); conversation = makeConversation(); }
@Override protected void setUp() throws Exception { super.setUp(); Blips.init(); conversation = makeConversation(); wavelet = createMockWavelet(conversation); eventMessages = new EventMessageBundle("foo@appspot.com", "http://opensocial.example.com"); }
@Override protected void setUp() throws Exception { super.setUp(); Blips.init(); conversation = makeConversation(); wavelet = createMockWavelet(conversation); eventMessages = new EventMessageBundle("foo@appspot.com", "http://opensocial.example.com"); }
public void testToBlipDataHandlesBlipWithEmptyDocument() throws Exception { Blips.init(); Conversation conversation = makeConversation(); Wavelet wavelet = mock(Wavelet.class); when(wavelet.getWaveId()).thenReturn(WAVE_ID); when(wavelet.getId()).thenReturn(WAVELET_ID); EventDataConverterV21 converter = new EventDataConverterV21(); assertEquals("", converter.toBlipData(conversation.getRootThread().getFirstBlip(), wavelet, new EventMessageBundle(null, null)).getContent()); }
public void testToBlipDataHandlesBlipWithEmptyDocument() throws Exception { Blips.init(); Conversation conversation = makeConversation(); Wavelet wavelet = mock(Wavelet.class); when(wavelet.getWaveId()).thenReturn(WAVE_ID); when(wavelet.getId()).thenReturn(WAVELET_ID); EventDataConverterV21 converter = new EventDataConverterV21(); assertEquals("", converter.toBlipData(conversation.getRootThread().getFirstBlip(), wavelet, new EventMessageBundle(null, null)).getContent()); }
private void setupTest(String content) { Blips.init(); LineRendering.registerContainer(Blips.BODY_TAGNAME, Editor.ROOT_HANDLER_REGISTRY); EditorStaticDeps.setPopupProvider(Popup.LIGHTWEIGHT_POPUP_PROVIDER); editor = (EditorImpl)Editors.create(); editor.init(Editor.ROOT_REGISTRIES, null, EditorSettings.DEFAULT); System.err.println(content); ContentSerialisationUtil.setContentString(editor, content); doc = editor.mutable(); aggressiveSelectionHelper = editor.getAggressiveSelectionHelper(); }
private void setupTest(String content) { Blips.init(); LineRendering.registerContainer(Blips.BODY_TAGNAME, Editor.ROOT_HANDLER_REGISTRY); EditorStaticDeps.setPopupProvider(Popup.LIGHTWEIGHT_POPUP_PROVIDER); editor = (EditorImpl)Editors.create(); editor.init(Editor.ROOT_REGISTRIES, null, EditorSettings.DEFAULT); System.err.println(content); ContentSerialisationUtil.setContentString(editor, content); doc = editor.mutable(); aggressiveSelectionHelper = editor.getAggressiveSelectionHelper(); }