Package liquibase.sdk.resource

Examples of liquibase.sdk.resource.MockResourceAccessor


//
////        expect(connectionForConstructor.getMetaData()).andReturn(metaData);
//        replay(connectionForConstructor);
//
//        testLiquibase = new TestLiquibase();
        mockResourceAccessor = new MockResourceAccessor();
        mockDatabase = mock(Database.class);
        mockLockService = mock(LockService.class);
        mockLockServiceFactory = mock(LockServiceFactory.class);
        mockChangeLogParserFactory = mock(ChangeLogParserFactory.class);
        mockChangeLogParser = mock(ChangeLogParser.class);
View Full Code Here


    }

    @Test
    public void constructor() throws Exception {
        LogFactory.reset(); //going to test log setup
        MockResourceAccessor resourceAccessor = this.mockResourceAccessor;
        MockDatabase database = new MockDatabase();

        Liquibase liquibase = new Liquibase("com/example/test.xml", resourceAccessor, database);

        assertNotNull(liquibase.getLog());
View Full Code Here

         * If using multiple parameters, store them here
         */
        protected Map<String, Object> objectsToVerify = new HashMap<String, Object>();

        private LiquibaseDelegate() throws LiquibaseException {
            super("com/example/test.xml", new MockResourceAccessor(), mock(Database.class));
        }
View Full Code Here

TOP

Related Classes of liquibase.sdk.resource.MockResourceAccessor

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.