Package com.impetus.kundera.persistence

Examples of com.impetus.kundera.persistence.KunderaTransactionException


    }

    @Test
    public void testKunderaTransactionException()
    {
        KunderaTransactionException exception = new KunderaTransactionException();
        Assert.assertNotNull(exception);

        exception = new KunderaTransactionException("Error with string");
        Assert.assertNotNull(exception);
        exception = new KunderaTransactionException(new RuntimeException());
        Assert.assertNotNull(exception);
       
        exception = new KunderaTransactionException("Error with string", new RuntimeException());
        Assert.assertNotNull(exception);
       
        exception = new KunderaTransactionException("Error with string", new RuntimeException());
        Assert.assertNotNull(exception);
    }
View Full Code Here


            ((Neo4JTransaction) resource).setGraphDb(factory.getConnection());
            this.resource = resource;
        }
        else
        {
            throw new KunderaTransactionException("Invalid transaction resource provided:" + resource
                    + " Should have been an instance of :" + Neo4JTransaction.class);
        }
    }
View Full Code Here

        {
            this.resource = resource;
        }
        else
        {
            throw new KunderaTransactionException("Invalid transaction resource provided:" + resource
                    + " Should have been an instance of :" + RedisTransaction.class);
        }
    }
View Full Code Here

TOP

Related Classes of com.impetus.kundera.persistence.KunderaTransactionException

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.