Package hivemind.test.services

Examples of hivemind.test.services.StringHolder


        p.process(elements, m);

        List l = p.getElements();

        assertEquals(1, l.size());
        StringHolder h = (StringHolder) l.get(0);

        assertEquals("flintstone", h.getValue());

        verifyControls();
    }
View Full Code Here


        p.process(elements, m);

        List l = p.getElements();

        assertEquals(1, l.size());
        StringHolder h = (StringHolder) l.get(0);

        assertEquals("flintstone", h.getValue());

        verifyControls();
    }
View Full Code Here

        p.process(elements, m);

        List l = p.getElements();

        assertEquals(1, l.size());
        StringHolder h = (StringHolder) l.get(0);

        assertEquals("wilma", h.getValue());

        verifyControls();
    }
View Full Code Here

        p.process(elements, m);

        Map map = p.getMappedElements();

        assertEquals(1, map.size());
        StringHolder h = (StringHolder) map.get(flintstoneKey);

        assertEquals("fred", h.getValue());

        verifyControls();
    }
View Full Code Here

    public void testServicePropertyObjectProvider()
    {
        MockControl mc = newControl(Module.class);
        Module m = (Module) mc.getMock();

        StringHolder h = new StringHolderImpl();

        h.setValue("abracadabra");

        m.getService("MyService", Object.class);
        mc.setReturnValue(h);

        replayControls();

        ServicePropertyObjectProvider p = new ServicePropertyObjectProvider();

        Object result = p.provideObject(m, String.class, "MyService:value", null);

        assertEquals(h.getValue(), result);

        verifyControls();
    }
View Full Code Here

        p.process(elements, m);

        List l = p.getElements();

        assertEquals(1, l.size());
        StringHolder h = (StringHolder) l.get(0);

        assertEquals("flintstone", h.getValue());

        verifyControls();
    }
View Full Code Here

        p.process(elements, m);

        List l = p.getElements();

        assertEquals(1, l.size());
        StringHolder h = (StringHolder) l.get(0);

        assertEquals("flintstone", h.getValue());

        verifyControls();
    }
View Full Code Here

        p.process(elements, m);

        List l = p.getElements();

        assertEquals(1, l.size());
        StringHolder h = (StringHolder) l.get(0);

        assertEquals("wilma", h.getValue());

        verifyControls();
    }
View Full Code Here

        p.process(elements, m);

        Map map = p.getMappedElements();

        assertEquals(1, map.size());
        StringHolder h = (StringHolder) map.get("flintstone");

        assertEquals("fred", h.getValue());

        verifyControls();
    }
View Full Code Here

    RegistryInfrastructure r = (RegistryInfrastructure) rc.getMock();
   
    ModuleImpl m = new ModuleImpl();
    m.setRegistry(r);
   
    StringHolder h = new StringHolderImpl();
   
    r.getService(StringHolder.class, m);
    rc.setReturnValue(h);
   
    replayControls();
View Full Code Here

TOP

Related Classes of hivemind.test.services.StringHolder

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.