Package com.bazaarvoice.jolt.chainr.instantiator

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


            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 );
View Full Code Here


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

        Chainr.fromSpec( spec, new GuiceChainrInstantiator( parentModule ) );
    }
View Full Code Here

            public GuiceTransform.GuiceConfig getConfigC() {
                return new GuiceTransform.GuiceConfig( "c", "cc" );
            }
        };

        Chainr.fromSpec( spec, new GuiceChainrInstantiator( parentModule ) );
    }
View Full Code Here

    }

    @Test( expectedExceptions = SpecException.class )
    public void itBlowsUpForBadGuiceTransform() {
        Chainr.fromSpec( ImmutableList.of( ImmutableMap.of( "operator", "com.bazaarvoice.jolt.chainr.transforms.GuiceTransformMissingInjectAnnotation" ) ),
                new GuiceChainrInstantiator( new AbstractModule() {
                    @Override
                    protected void configure() {
                    }

                    @Provides
View Full Code Here

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

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

        Assert.assertTrue( unit.hasContextualTransforms() );
        Assert.assertEquals( unit.getContextualTransforms().size(), 2 );

        Object actual = unit.transform( input, context );
View Full Code Here

TOP

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

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.