Package com.xebia.cqrs.domain

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

Related Classes of com.xebia.cqrs.domain.VersionedId

Copyright © 2018 www.massapicom. 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.