use of org.eclipse.mylyn.wikitext.parser.builder.event.ImageLinkEvent in project mylyn.docs by eclipse.
the class MultiplexingDocumentBuilderTest method imageLink.
@Test
public void imageLink() {
multiplexer.imageLink(new LinkAttributes(), new ImageAttributes(), "https://example.com", "http://example.com/foo.png");
assertEvents(new ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), "https://example.com", "http://example.com/foo.png"));
}
use of org.eclipse.mylyn.wikitext.parser.builder.event.ImageLinkEvent in project mylyn.docs by eclipse.
the class EventDocumentBuilderTest method imageLink.
@Test
public void imageLink() {
builder.imageLink(new LinkAttributes(), new ImageAttributes(), "https://example.com", "http://example.com/foo.png");
assertEvents(new ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), "https://example.com", "http://example.com/foo.png"));
}
use of org.eclipse.mylyn.wikitext.parser.builder.event.ImageLinkEvent in project mylyn.docs by eclipse.
the class ImageLinkEventTest method equals.
@Test
public void equals() {
assertEquality(new ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), "http://example.com", "http://example.com/img.png"), new ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), "http://example.com", "http://example.com/img.png"));
assertInequality(new ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), "http://example.com", "http://example.com/img.png"), new ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), "http://example.com", "http://example.com/img2.png"));
assertInequality(new ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), "http://example.com", "http://example.com/img.png"), new ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), "http://example.com/2", "http://example.com/img.png"));
}
Aggregations