Package com.darkhonor.rage.model

Examples of com.darkhonor.rage.model.TestCase


     */
    @Test
    public void testDelete_TestCase()
    {
        System.out.println("delete");
        TestCase testCase = createSampleTestCase1();
        Long id = testCase.getId();

        TestCase result = instance.find(id);
        assertNotNull(result);

        assertTrue(instance.isOpen());
        instance.delete(testCase);
        assertTrue(instance.isOpen());
View Full Code Here


    @Test
    public void testDeleteTestCaseNoInputs()
    {
        System.out.println("delete - No Inputs");
        TestCase testCase = createSampleTestCase3();
        Long id = testCase.getId();

        TestCase result = instance.find(id);
        assertNotNull(result);

        assertTrue(instance.isOpen());
        instance.delete(testCase);
        assertTrue(instance.isOpen());
View Full Code Here

   
    @Test
    public void testDeleteTestCaseNoExemptions()
    {
        System.out.println("delete - No Exemptions");
        TestCase testCase = createSampleTestCase2();
        Long id = testCase.getId();

        TestCase result = instance.find(id);
        assertNotNull(result);

        assertTrue(instance.isOpen());
        instance.delete(testCase);
        assertTrue(instance.isOpen());
View Full Code Here

   
    @Test(expected = IllegalStateException.class)
    public void testDeleteTestCaseClosedConnection()
    {
        System.out.println("delete - Closed Connection");
        TestCase testCase = createSampleTestCase1();
        Long id = testCase.getId();

        TestCase result = instance.find(id);
        assertNotNull(result);

        assertTrue(instance.isOpen());
        instance.closeConnection();
        assertFalse(instance.isOpen());
View Full Code Here

   
    @Test(expected = NullPointerException.class)
    public void testDeleteTestCaseNullTestCase()
    {
        System.out.println("delete - Null TestCase");
        TestCase testCase = null;

        assertTrue(instance.isOpen());
        instance.delete(testCase);
    }
View Full Code Here

   
    @Test(expected = NullPointerException.class)
    public void testDeleteTestCaseNullId()
    {
        System.out.println("delete - Null id");
        TestCase testCase = createSampleTestCase1();
       
        testCase.setId(null);
        assertTrue(instance.isOpen());
        instance.delete(testCase);
    }
View Full Code Here

    @Test(expected = IllegalArgumentException.class)
    public void testDeleteTestCaseNotFound()
    {
        System.out.println("delete - TestCase not found");
        System.out.println("delete - Null id");
        TestCase testCase = createNewTestCase();
        Long id = testCase.getId();

        TestCase result = instance.find(id);
        assertNull(result);
       
        assertTrue(instance.isOpen());
        instance.delete(testCase);
    }
View Full Code Here

   
    @Test(expected = IllegalArgumentException.class)
    public void testDeleteTestCaseZeroId()
    {
        System.out.println("delete - id = 0");
        TestCase testCase = createSampleTestCase1();
       
        testCase.setId(new Long(0L));
        assertTrue(instance.isOpen());
        instance.delete(testCase);
    }
View Full Code Here

   
    @Test(expected = IllegalArgumentException.class)
    public void testDeleteTestCaseNegativeId()
    {
        System.out.println("delete - id < 0");
        TestCase testCase = createSampleTestCase1();
       
        testCase.setId(new Long(-3L));
        assertTrue(instance.isOpen());
        instance.delete(testCase);       
    }
View Full Code Here

    public void testDelete_Long()
    {
        System.out.println("delete (id)");
        Long id = new Long(5L);

        TestCase result = instance.find(id);
        assertNotNull(result);

        assertTrue(instance.isOpen());
        instance.delete(id);
        assertTrue(instance.isOpen());
View Full Code Here

TOP

Related Classes of com.darkhonor.rage.model.TestCase

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.