Search in sources :

Example 1 with AcronymEvent

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

the class EventDocumentBuilderTest method acronym.

@Test
public void acronym() {
    builder.acronym("one", "two");
    assertEvents(new AcronymEvent("one", "two"));
}
Also used : AcronymEvent(org.eclipse.mylyn.wikitext.parser.builder.event.AcronymEvent) Test(org.junit.Test)

Example 2 with AcronymEvent

use of org.eclipse.mylyn.wikitext.parser.builder.event.AcronymEvent 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 3 with AcronymEvent

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

the class MultiplexingDocumentBuilderTest method acronym.

@Test
public void acronym() {
    multiplexer.acronym("one", "two");
    assertEvents(new AcronymEvent("one", "two"));
}
Also used : AcronymEvent(org.eclipse.mylyn.wikitext.parser.builder.event.AcronymEvent) Test(org.junit.Test)

Example 4 with AcronymEvent

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

the class AcronymEventTest method equals.

@Test
public void equals() {
    assertEquality(new AcronymEvent("one", "two"), new AcronymEvent("one", "two"));
    assertInequality(new AcronymEvent("one", "two"), new AcronymEvent("three", "two"));
    assertInequality(new AcronymEvent("one", "two"), new AcronymEvent("one", "three"));
}
Also used : AcronymEvent(org.eclipse.mylyn.wikitext.parser.builder.event.AcronymEvent) Test(org.junit.Test)

Aggregations

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