Examples of greetPerson()


Examples of com.xebia.cqrs.domain.FakeAggregateRoot.greetPerson()

   
    @Test
    public void shouldRejectDifferentAggregatesWithSameId() {
        FakeAggregateRoot a = aggregateRoot;
        FakeAggregateRoot b = new FakeAggregateRoot(TEST_ID);
        b.greetPerson("Jan");
       
        subject.add(a);
        try {
            subject.add(b);
            fail("IllegalStateException expected");
View Full Code Here

Examples of com.xebia.cqrs.domain.FakeAggregateRoot.greetPerson()

    public void shouldStoreLoadedAggregateWithNextVersion() {
        replay(bus);
        subject.afterHandleMessage();

        FakeAggregateRoot result = subject.getByVersionedId(FakeAggregateRoot.class, TEST_ID);
        result.greetPerson("Mark");
        subject.afterHandleMessage();
       
        FakeAggregateRoot loaded = subject.getByVersionedId(FakeAggregateRoot.class, TEST_ID.nextVersion());
       
        assertEquals("Hi Mark", loaded.getLastGreeting());
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.