Examples of VersionedId


Examples of com.xebia.cqrs.domain.VersionedId

        }
    }
   
    @Test
    public void shouldFailOnNonExistingAggregateRoot() {
        VersionedId id = VersionedId.random();
        try {
            subject.getByVersionedId(FakeAggregateRoot.class, id);
            fail("AggregateRootNotFoundException expected");
        } catch (AggregateRootNotFoundException expected) {
            assertEquals(FakeAggregateRoot.class.getName(), expected.getAggregateRootType());
            assertEquals(id.getId(), expected.getAggregateRootId());
        }
    }
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.