Search in sources :

Example 1 with BeginHeadingEvent

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

the class EventDocumentBuilderTest method beginHeading.

@Test
public void beginHeading() {
    builder.beginHeading(3, new HeadingAttributes());
    assertEvents(new BeginHeadingEvent(3, new HeadingAttributes()));
}
Also used : BeginHeadingEvent(org.eclipse.mylyn.wikitext.parser.builder.event.BeginHeadingEvent) HeadingAttributes(org.eclipse.mylyn.wikitext.parser.HeadingAttributes) Test(org.junit.Test)

Example 2 with BeginHeadingEvent

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

the class BeginHeadingEventTest method equals.

@Test
public void equals() {
    assertEquality(new BeginHeadingEvent(2, new Attributes()), new BeginHeadingEvent(2, new Attributes()));
    assertInequality(new BeginHeadingEvent(2, new Attributes()), new BeginHeadingEvent(1, new Attributes()));
}
Also used : BeginHeadingEvent(org.eclipse.mylyn.wikitext.parser.builder.event.BeginHeadingEvent) Attributes(org.eclipse.mylyn.wikitext.parser.Attributes) Test(org.junit.Test)

Example 3 with BeginHeadingEvent

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

the class MultiplexingDocumentBuilderTest method beginHeading.

@Test
public void beginHeading() {
    multiplexer.beginHeading(3, new HeadingAttributes());
    assertEvents(new BeginHeadingEvent(3, new HeadingAttributes()));
}
Also used : BeginHeadingEvent(org.eclipse.mylyn.wikitext.parser.builder.event.BeginHeadingEvent) HeadingAttributes(org.eclipse.mylyn.wikitext.parser.HeadingAttributes) Test(org.junit.Test)

Aggregations

BeginHeadingEvent (org.eclipse.mylyn.wikitext.parser.builder.event.BeginHeadingEvent)3 Test (org.junit.Test)3 HeadingAttributes (org.eclipse.mylyn.wikitext.parser.HeadingAttributes)2 Attributes (org.eclipse.mylyn.wikitext.parser.Attributes)1