Search in sources :

Example 6 with HeadingAttributes

use of org.eclipse.mylyn.wikitext.parser.HeadingAttributes 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 7 with HeadingAttributes

use of org.eclipse.mylyn.wikitext.parser.HeadingAttributes 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

HeadingAttributes (org.eclipse.mylyn.wikitext.parser.HeadingAttributes)7 Matcher (java.util.regex.Matcher)2 Line (org.eclipse.mylyn.wikitext.commonmark.internal.Line)2 TextSegment (org.eclipse.mylyn.wikitext.commonmark.internal.TextSegment)2 InlineParser (org.eclipse.mylyn.wikitext.commonmark.internal.inlines.InlineParser)2 BeginHeadingEvent (org.eclipse.mylyn.wikitext.parser.builder.event.BeginHeadingEvent)2 Test (org.junit.Test)2