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