Search in sources :

Example 1 with LineBreakEvent

use of org.eclipse.mylyn.wikitext.parser.builder.event.LineBreakEvent in project mylyn.docs by eclipse.

the class MultiplexingDocumentBuilderTest method newDelegateAfterInstatiation.

@Test
public void newDelegateAfterInstatiation() {
    multiplexer.lineBreak();
    assertEvents(new LineBreakEvent());
    EventDocumentBuilder delegate3 = new EventDocumentBuilder();
    multiplexer.addDocumentBuilder(delegate3);
    multiplexer.acronym("a", "b");
    assertEvents(new LineBreakEvent(), new AcronymEvent("a", "b"));
    assertEquals(Arrays.asList(new AcronymEvent("a", "b")), delegate3.getDocumentBuilderEvents().getEvents());
}
Also used : AcronymEvent(org.eclipse.mylyn.wikitext.parser.builder.event.AcronymEvent) LineBreakEvent(org.eclipse.mylyn.wikitext.parser.builder.event.LineBreakEvent) EventDocumentBuilder(org.eclipse.mylyn.wikitext.parser.builder.EventDocumentBuilder) Test(org.junit.Test)

Example 2 with LineBreakEvent

use of org.eclipse.mylyn.wikitext.parser.builder.event.LineBreakEvent in project mylyn.docs by eclipse.

the class EventDocumentBuilderTest method lineBreak.

@Test
public void lineBreak() {
    builder.lineBreak();
    assertEvents(new LineBreakEvent());
}
Also used : LineBreakEvent(org.eclipse.mylyn.wikitext.parser.builder.event.LineBreakEvent) Test(org.junit.Test)

Example 3 with LineBreakEvent

use of org.eclipse.mylyn.wikitext.parser.builder.event.LineBreakEvent in project mylyn.docs by eclipse.

the class MultiplexingDocumentBuilderTest method lineBreak.

@Test
public void lineBreak() {
    multiplexer.lineBreak();
    assertEvents(new LineBreakEvent());
}
Also used : LineBreakEvent(org.eclipse.mylyn.wikitext.parser.builder.event.LineBreakEvent) Test(org.junit.Test)

Aggregations

LineBreakEvent (org.eclipse.mylyn.wikitext.parser.builder.event.LineBreakEvent)3 Test (org.junit.Test)3 EventDocumentBuilder (org.eclipse.mylyn.wikitext.parser.builder.EventDocumentBuilder)1 AcronymEvent (org.eclipse.mylyn.wikitext.parser.builder.event.AcronymEvent)1