Examples of MyOtherEvent


Examples of org.axonframework.test.MyOtherEvent

        assertTrue(testSubject.matches(new MyEvent(aggregateId, 1)));
    }

    @Test
    public void testMatches_WrongEventType() {
        assertFalse(testSubject.matches(new MyOtherEvent()));
    }
View Full Code Here

Examples of org.axonframework.test.MyOtherEvent

        assertEquals("org.axonframework.test.MyEvent", description.toString());
    }

    @Test
    public void testDescription_AfterMatchWithWrongType() {
        testSubject.matches(new MyOtherEvent());
        StringDescription description = new StringDescription();
        testSubject.describeTo(description);
        assertEquals("org.axonframework.test.MyEvent", description.toString());
    }
View Full Code Here

Examples of org.axonframework.test.MyOtherEvent

        testSubject.assertPublishedEventsMatching(Matchers.noEvents());
    }

    @Test(expected = AxonAssertionError.class)
    public void testAssertPublishedEventsWithNoEventsMatcherThrowsAssertionErrorIfEventWasPublished() throws Exception {
        testSubject.handle(GenericEventMessage.asEventMessage(new MyOtherEvent()));

        testSubject.assertPublishedEventsMatching(Matchers.noEvents());
    }
View Full Code Here

Examples of org.axonframework.test.MyOtherEvent

        testSubject.assertPublishedEvents();
    }

    @Test(expected = AxonAssertionError.class)
    public void testAssertPublishedEventsThrowsAssertionErrorIfEventWasPublished() throws Exception {
        testSubject.handle(GenericEventMessage.asEventMessage(new MyOtherEvent()));

        testSubject.assertPublishedEvents();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.