Package com.consol.citrus.actions

Examples of com.consol.citrus.actions.ExecutePLSQLAction


        builder.execute();
         
        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), ExecutePLSQLAction.class);
         
        ExecutePLSQLAction action = (ExecutePLSQLAction)builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getName(), "plsql");
        Assert.assertEquals(action.isIgnoreErrors(), false);
        Assert.assertEquals(action.getStatements().toString(), "[Test Statement, Test2 Statement, Test3 Statement]");
        Assert.assertNull(action.getScript());
        Assert.assertNull(action.getSqlResourcePath());
        Assert.assertEquals(action.getDataSource(), dataSource);
    }
View Full Code Here


        builder.execute();
         
        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), ExecutePLSQLAction.class);

        ExecutePLSQLAction action = (ExecutePLSQLAction)builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getName(), "plsql");
        Assert.assertEquals(action.isIgnoreErrors(), false);
        Assert.assertEquals(action.getStatements().size(), 0L);
        Assert.assertEquals(action.getScript(), "testScript");
        Assert.assertEquals(action.getDataSource(), dataSource);
    }
View Full Code Here

        builder.execute();
         
        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), ExecutePLSQLAction.class);

        ExecutePLSQLAction action = (ExecutePLSQLAction)builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getName(), "plsql");
        Assert.assertEquals(action.isIgnoreErrors(), true);
        Assert.assertEquals(action.getStatements().size(), 0L);
        Assert.assertNull(action.getSqlResourcePath());
        Assert.assertEquals(action.getScript(), "testScript");
        Assert.assertEquals(action.getDataSource(), dataSource);
    }
View Full Code Here

    @Test
    public void testPLSQLActionParser() {
        assertActionCount(2);
       
        ExecutePLSQLAction action = getNextTestActionFromTest();
        Assert.assertEquals(action.getName(), "plsql:testDataSource");
        Assert.assertNotNull(action.getDataSource());
        Assert.assertNotNull(action.getSqlResourcePath());
        Assert.assertNull(action.getScript());
        Assert.assertEquals(action.isIgnoreErrors(), false);

        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getName(), "plsql:testDataSource");
        Assert.assertNotNull(action.getDataSource());
        Assert.assertNull(action.getSqlResourcePath());
        Assert.assertTrue(action.getScript().length() > 0);
        Assert.assertEquals(action.isIgnoreErrors(), true);
    }
View Full Code Here

TOP

Related Classes of com.consol.citrus.actions.ExecutePLSQLAction

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.