Search in sources :

Example 1 with LinkEvent

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"));
}
Also used : LinkAttributes(org.eclipse.mylyn.wikitext.parser.LinkAttributes) ImageLinkEvent(org.eclipse.mylyn.wikitext.parser.builder.event.ImageLinkEvent) LinkEvent(org.eclipse.mylyn.wikitext.parser.builder.event.LinkEvent) Test(org.junit.Test)

Example 2 with LinkEvent

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"));
}
Also used : LinkEvent(org.eclipse.mylyn.wikitext.parser.builder.event.LinkEvent) Attributes(org.eclipse.mylyn.wikitext.parser.Attributes) Test(org.junit.Test)

Example 3 with LinkEvent

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"));
}
Also used : LinkAttributes(org.eclipse.mylyn.wikitext.parser.LinkAttributes) ImageLinkEvent(org.eclipse.mylyn.wikitext.parser.builder.event.ImageLinkEvent) LinkEvent(org.eclipse.mylyn.wikitext.parser.builder.event.LinkEvent) Test(org.junit.Test)

Aggregations

LinkEvent (org.eclipse.mylyn.wikitext.parser.builder.event.LinkEvent)3 Test (org.junit.Test)3 LinkAttributes (org.eclipse.mylyn.wikitext.parser.LinkAttributes)2 ImageLinkEvent (org.eclipse.mylyn.wikitext.parser.builder.event.ImageLinkEvent)2 Attributes (org.eclipse.mylyn.wikitext.parser.Attributes)1