Search in sources :

Example 1 with BeginDocumentEvent

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

the class DocumentBuilderEventsTest method testToString.

@Test
public void testToString() {
    BeginDocumentEvent event = new BeginDocumentEvent();
    DocumentBuilderEvents events = new DocumentBuilderEvents(Lists.<DocumentBuilderEvent>newArrayList(event));
    assertNotNull(events.toString());
    assertTrue(events.toString().contains(event.toString()));
}
Also used : DocumentBuilderEvents(org.eclipse.mylyn.wikitext.parser.builder.event.DocumentBuilderEvents) BeginDocumentEvent(org.eclipse.mylyn.wikitext.parser.builder.event.BeginDocumentEvent) Test(org.junit.Test)

Example 2 with BeginDocumentEvent

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

the class DocumentBuilderEventsTest method createsWithProvidedEvents.

@Test
public void createsWithProvidedEvents() {
    BeginDocumentEvent event = new BeginDocumentEvent();
    List<DocumentBuilderEvent> allEvents = Lists.<DocumentBuilderEvent>newArrayList(event);
    DocumentBuilderEvents events = new DocumentBuilderEvents(allEvents);
    assertEquals(allEvents, events.getEvents());
}
Also used : DocumentBuilderEvent(org.eclipse.mylyn.wikitext.parser.builder.event.DocumentBuilderEvent) DocumentBuilderEvents(org.eclipse.mylyn.wikitext.parser.builder.event.DocumentBuilderEvents) BeginDocumentEvent(org.eclipse.mylyn.wikitext.parser.builder.event.BeginDocumentEvent) Test(org.junit.Test)

Example 3 with BeginDocumentEvent

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

the class MultiplexingDocumentBuilderTest method beginDocument.

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

Example 4 with BeginDocumentEvent

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

the class EventDocumentBuilderTest method beginDocument.

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

Aggregations

BeginDocumentEvent (org.eclipse.mylyn.wikitext.parser.builder.event.BeginDocumentEvent)4 Test (org.junit.Test)4 DocumentBuilderEvents (org.eclipse.mylyn.wikitext.parser.builder.event.DocumentBuilderEvents)2 DocumentBuilderEvent (org.eclipse.mylyn.wikitext.parser.builder.event.DocumentBuilderEvent)1