use of org.eclipse.mylyn.wikitext.parser.builder.event.LinkEvent in project mylyn.docs by eclipse.
the class EventDocumentBuilderTest method link.
@Test
public void link() {
builder.link(new LinkAttributes(), "https://example.com", "test");
assertEvents(new LinkEvent(new LinkAttributes(), "https://example.com", "test"));
}
use of org.eclipse.mylyn.wikitext.parser.builder.event.LinkEvent in project mylyn.docs by eclipse.
the class LinkEventTest method equals.
@Test
public void equals() {
assertEquality(new LinkEvent(new Attributes(), "#name", "text"), new LinkEvent(new Attributes(), "#name", "text"));
assertInequality(new LinkEvent(new Attributes(), "#name", "text"), new LinkEvent(new Attributes(), "#name2", "text"));
assertInequality(new LinkEvent(new Attributes(), "#name", "text"), new LinkEvent(new Attributes(), "#name", "text2"));
}
use of org.eclipse.mylyn.wikitext.parser.builder.event.LinkEvent in project mylyn.docs by eclipse.
the class MultiplexingDocumentBuilderTest method link.
@Test
public void link() {
multiplexer.link(new LinkAttributes(), "https://example.com", "test");
assertEvents(new LinkEvent(new LinkAttributes(), "https://example.com", "test"));
}
Aggregations