Search in sources :

Example 1 with ImageEvent

use of org.eclipse.mylyn.wikitext.parser.builder.event.ImageEvent in project mylyn.docs by eclipse.

the class ImageEventTest method equals.

@Test
public void equals() {
    assertEquality(new ImageEvent(new Attributes(), "http://example.com/img.png"), new ImageEvent(new Attributes(), "http://example.com/img.png"));
    assertInequality(new ImageEvent(new Attributes(), "http://example.com/img.png"), new ImageEvent(new Attributes(), "http://example.com/img2.png"));
}
Also used : Attributes(org.eclipse.mylyn.wikitext.parser.Attributes) ImageEvent(org.eclipse.mylyn.wikitext.parser.builder.event.ImageEvent) Test(org.junit.Test)

Example 2 with ImageEvent

use of org.eclipse.mylyn.wikitext.parser.builder.event.ImageEvent in project mylyn.docs by eclipse.

the class EventDocumentBuilderTest method image.

@Test
public void image() {
    builder.image(new ImageAttributes(), "http://example.com/foo.png");
    assertEvents(new ImageEvent(new ImageAttributes(), "http://example.com/foo.png"));
}
Also used : ImageEvent(org.eclipse.mylyn.wikitext.parser.builder.event.ImageEvent) ImageAttributes(org.eclipse.mylyn.wikitext.parser.ImageAttributes) Test(org.junit.Test)

Example 3 with ImageEvent

use of org.eclipse.mylyn.wikitext.parser.builder.event.ImageEvent in project mylyn.docs by eclipse.

the class MultiplexingDocumentBuilderTest method image.

@Test
public void image() {
    multiplexer.image(new ImageAttributes(), "http://example.com/foo.png");
    assertEvents(new ImageEvent(new ImageAttributes(), "http://example.com/foo.png"));
}
Also used : ImageEvent(org.eclipse.mylyn.wikitext.parser.builder.event.ImageEvent) ImageAttributes(org.eclipse.mylyn.wikitext.parser.ImageAttributes) Test(org.junit.Test)

Aggregations

ImageEvent (org.eclipse.mylyn.wikitext.parser.builder.event.ImageEvent)3 Test (org.junit.Test)3 ImageAttributes (org.eclipse.mylyn.wikitext.parser.ImageAttributes)2 Attributes (org.eclipse.mylyn.wikitext.parser.Attributes)1