Package info.archinnov.achilles.test.integration.entity

Examples of info.archinnov.achilles.test.integration.entity.EntityWithWriteOneAndReadThreeConsistency


        manager.insert(bean);
    }

    @Test
    public void should_throw_exception_when_loading_entity_with_three_consistency() throws Exception {
        EntityWithWriteOneAndReadThreeConsistency bean = new EntityWithWriteOneAndReadThreeConsistency(id, "FN", "LN");

        manager.insert(bean);

        expectedEx.expect(UnavailableException.class);
        expectedEx.expectMessage("Not enough replica available for query at consistency THREE (3 required but only 1 alive)");
View Full Code Here


    }

    @Test
    public void should_recover_from_exception_and_reinit_consistency_level() throws Exception {
        boolean exceptionCaught = false;
        EntityWithWriteOneAndReadThreeConsistency bean = new EntityWithWriteOneAndReadThreeConsistency(id, "FN", "LN");
        try {
            manager.insert(bean);
            manager.find(EntityWithWriteOneAndReadThreeConsistency.class, id);
        } catch (UnavailableException e) {
            // Should recover from exception
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.test.integration.entity.EntityWithWriteOneAndReadThreeConsistency

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.