Package com.bazaarvoice.jolt.chainr.instantiator

Examples of com.bazaarvoice.jolt.chainr.instantiator.DefaultChainrInstantiator


    }

    @Test
    public void testGetChainrInstanceFromClassPathWithInstantiator_success()
            throws Exception {
        Object result = ChainrFactory.fromClassPath( CLASSPATH + WELLFORMED_INPUT_FILENAME, new DefaultChainrInstantiator() );
        AssertJUnit.assertTrue( "ChainrFactory did not return an instance of Chainr.", result instanceof Chainr );
    }
View Full Code Here


    }

    @Test( expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = "Unable to load JSON.*" )
    public void testGetChainrInstanceFromClassPathWithInstantiator_error()
            throws Exception {
        ChainrFactory.fromClassPath( CLASSPATH + MALFORMED_INPUT_FILENAME, new DefaultChainrInstantiator() );
    }
View Full Code Here

    }

    @Test
    public void testGetChainrInstanceFromFileSystemWithInstantiator_success()
            throws Exception {
        Object result = ChainrFactory.fromFileSystem( fileSystemPath + WELLFORMED_INPUT_FILENAME, new DefaultChainrInstantiator() );
        AssertJUnit.assertTrue( "ChainrFactory did not return an instance of Chainr.", result instanceof Chainr );
    }
View Full Code Here

    }

    @Test(expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = "Unable to load JSON.*")
    public void testGetChainrInstanceFromFileSystemWithInstantiator_error()
            throws Exception {
        ChainrFactory.fromFileSystem( fileSystemPath + MALFORMED_INPUT_FILENAME, new DefaultChainrInstantiator() );
    }
View Full Code Here

    }

    @Test
    public void testGetChainrInstanceFromFileWithInstantiator_success()
            throws Exception {
        Object result = ChainrFactory.fromFile( wellformedFile, new DefaultChainrInstantiator() );
        AssertJUnit.assertTrue( "ChainrFactory did not return an instance of Chainr.", result instanceof Chainr );
    }
View Full Code Here

    }

    @Test(expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = "Unable to load chainr spec file.*")
    public void testGetChainrInstanceFromFileWithInstantiator_error()
            throws Exception {
        ChainrFactory.fromFile( malformedFile, new DefaultChainrInstantiator() );
    }
View Full Code Here

    @Test(dataProvider = "badFormatSpecs", expectedExceptions = SpecException.class )
    public void testBadSpecs( Object chainrSpecObj ) {
        ChainrSpec chainrSpec = new ChainrSpec( chainrSpecObj );
        ChainrEntry chainrEntry = chainrSpec.getChainrEntries().get( 0 );
        DefaultChainrInstantiator instantiator = new DefaultChainrInstantiator();

        // This should fail
        instantiator.hydrateTransform( chainrEntry );
    }
View Full Code Here

TOP

Related Classes of com.bazaarvoice.jolt.chainr.instantiator.DefaultChainrInstantiator

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.