Package org.apache.hivemind

Examples of org.apache.hivemind.Location


     *
     * @since 1.1
     */
    public void testErrorInInitializer() throws Exception
    {
        Location l = newLocation();

        MockControl fpc = newControl(ServiceImplementationFactoryParameters.class);
        ServiceImplementationFactoryParameters fp = (ServiceImplementationFactoryParameters) fpc
                .getMock();

View Full Code Here


    }

    public void testServicePropertyObjectProviderWithInvalidLocator()
    {
        ServicePropertyObjectProvider p = new ServicePropertyObjectProvider();
        Location l = newLocation();

        try
        {
            p.provideObject(null, null, "MyService", l);
            unreachable();
View Full Code Here

        verifyControls();
    }

    public void testBuildRegistryWrongAdapterType()
    {
        Location l = newLocation();

        StrategyRegistry ar = (StrategyRegistry) newMock(StrategyRegistry.class);
        ToStringStrategy adapter = (ToStringStrategy) newMock(ToStringStrategy.class);

        MockControl fpc = newControl(ServiceImplementationFactoryParameters.class);
View Full Code Here

        verifyControls();
    }

    public void testBuildImplementationClassImproperMethod()
    {
        Location l = newLocation();

        MockControl factoryControl = newControl(ClassFactory.class);
        ClassFactory factory = (ClassFactory) factoryControl.getMock();

        MockControl cfc = newControl(ClassFab.class);
View Full Code Here

        verifyControls();
    }

    public void testBuildImplementationClassImproperMethod()
    {
        Location l = newLocation();

        MockControl factoryControl = newControl(ClassFactory.class);
        ClassFactory factory = (ClassFactory) factoryControl.getMock();

        MockControl cfc = newControl(ClassFab.class);
View Full Code Here

        verifyControls();
    }

    public void testBuildRegistryWrongAdapterType()
    {
        Location l = newLocation();

        StrategyRegistry ar = (StrategyRegistry) newMock(StrategyRegistry.class);
        ToStringStrategy adapter = (ToStringStrategy) newMock(ToStringStrategy.class);

        MockControl fpc = newControl(ServiceImplementationFactoryParameters.class);
View Full Code Here

    public void testBadClass() throws Exception
    {
        InstanceTranslator t = new InstanceTranslator();
        ElementImpl e = new ElementImpl();
        Location l = new LocationImpl(getResource("TestInstanceTranslator.class"), 50);
        e.setLocation(l);

        Module m = newModule();

        m.resolveType("bad.class.Name");
View Full Code Here

    public void testPrivateObject() throws Exception
    {
        InstanceTranslator t = new InstanceTranslator();
        ElementImpl e = new ElementImpl();
        Location l = new LocationImpl(getResource("TestInstanceTranslator.class"), 50);
        e.setLocation(l);

        ModuleImpl m = new ModuleImpl();
        m.setClassResolver(getClassResolver());
View Full Code Here

        return sp;
    }
  
    public void testDefaultInterceptorOrdering()
    {
        Location l = newLocation();
        Module module = newModule();

        replayControls();

        ModuleDefinition moduleDef = createModuleDefinition("module");
View Full Code Here

        verifyControls();
    }

    public void testCustomInterceptorOrdering()
    {
        Location l = newLocation();
        Module module = newModule();

        replayControls();

        ModuleDefinition moduleDef = createModuleDefinition("module");
View Full Code Here

TOP

Related Classes of org.apache.hivemind.Location

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.