use of org.eclipse.mylyn.wikitext.parser.builder.MultiplexingDocumentBuilder in project mylyn.docs by eclipse.
the class MultiplexingDocumentBuilderTest method flush.
@Test
public void flush() {
final AtomicBoolean flushed = new AtomicBoolean();
DocumentBuilder delegate = new NoOpDocumentBuilder() {
@Override
public void flush() {
flushed.set(true);
}
};
multiplexer = new MultiplexingDocumentBuilder(delegate);
multiplexer.flush();
assertTrue(flushed.get());
}
use of org.eclipse.mylyn.wikitext.parser.builder.MultiplexingDocumentBuilder in project mylyn.docs by eclipse.
the class MultiplexingDocumentBuilderTest method setLocator.
@Test
public void setLocator() {
DocumentBuilder delegateOne = new NoOpDocumentBuilder();
DocumentBuilder delegateTwo = new NoOpDocumentBuilder();
Locator locator = new ContentState();
multiplexer = new MultiplexingDocumentBuilder(delegateOne, delegateTwo);
multiplexer.setLocator(locator);
assertSame(locator, delegateOne.getLocator());
assertSame(locator, delegateTwo.getLocator());
}
Aggregations