Package com.bazaarvoice.jolt

Examples of com.bazaarvoice.jolt.Chainr


            public GuiceSpecDrivenTransform.GuiceConfig getConfigD() {
                return new GuiceSpecDrivenTransform.GuiceConfig( "dd" );
            }
        };

        Chainr unit = Chainr.fromSpec( spec, new GuiceChainrInstantiator( parentModule ) );

        Assert.assertFalse( unit.hasContextualTransforms() );
        Assert.assertEquals( unit.getContextualTransforms().size(), 0 );

        Object actual = unit.transform( input, null );

        JoltTestUtil.runDiffy( "failed case " + testPath, expected, actual );
    }
View Full Code Here


            JoltTransform transform = chainrInstantiator.hydrateTransform( entry );
            transforms.add( transform );
        }

        return new Chainr( transforms );
    }
View Full Code Here

     * @param chainrInstantiator The ChainrInstantiator to use. If null it will not be used.
     * @param chainrSpec The json spec for the chainr transformation
     * @return the Chainr instance created from the chainrInstantiator and inputStream
     */
    private static Chainr getChainr( ChainrInstantiator chainrInstantiator, Object chainrSpec ) {
        Chainr chainr;
        if (chainrInstantiator == null ) {
            chainr = Chainr.fromSpec( chainrSpec );
        }
        else {
            chainr = Chainr.fromSpec( chainrSpec, chainrInstantiator );
View Full Code Here

            JoltTransform transform = chainrInstantiator.hydrateTransform( entry );
            transforms.add( transform );
        }

        return new Chainr( transforms );
    }
View Full Code Here

     * @param chainrInstantiator The ChainrInstantiator to use. If null it will not be used.
     * @param chainrSpec The json spec for the chainr transformation
     * @return the Chainr instance created from the chainrInstantiator and inputStream
     */
    private static Chainr getChainr( ChainrInstantiator chainrInstantiator, Object chainrSpec ) {
        Chainr chainr;
        if (chainrInstantiator == null ) {
            chainr = Chainr.fromSpec( chainrSpec );
        }
        else {
            chainr = Chainr.fromSpec( chainrSpec, chainrInstantiator );
View Full Code Here

     * @param inputStream The input stream to read the json data from
     * @param filePath The path to the file
     * @return the Chainr instance created from the chainrInstantiator and inputStream
     */
    private static Chainr getChainr( ChainrInstantiator chainrInstantiator, InputStream inputStream, String filePath ) {
        Chainr chainr;
        try {
            Object chainrSpec = JsonUtils.jsonToObject( inputStream );
            if (chainrInstantiator == null ) {
                chainr = Chainr.fromSpec( chainrSpec );
            }
View Full Code Here

TOP

Related Classes of com.bazaarvoice.jolt.Chainr

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.