Package org.apache.hivemind

Examples of org.apache.hivemind.Location


        assertSame(e, c.getLastEvent());
    }

    public void testNoMatch() throws Exception
    {
        Location location = newLocation();
        EventProducer p = new EventProducer();
        Object c = "NeverwinterNights";

        ErrorLog el = (ErrorLog) newMock(ErrorLog.class);
View Full Code Here


        verifyControls();
    }

    public void testNoMatchingName() throws Exception
    {
        Location location = newLocation();
        EventProducer p = new EventProducer();
        Object c = "SoulCailiburII";

        ErrorLog el = (ErrorLog) newMock(ErrorLog.class);
View Full Code Here

        verifyControls();
    }

    public void testIncompatible() throws Exception
    {
        Location location = newLocation();
        EventProducer p = new EventProducer();
        Object c = "SplinterCell";

        ErrorLog el = (ErrorLog) newMock(ErrorLog.class);
View Full Code Here

        verifyControls();
    }

    public void testNoProducer() throws Exception
    {
        Location location = newLocation();
        Object p = "DanceDanceRevolution";
        Object c = "SplinterCell";

        ErrorLog el = (ErrorLog) newMock(ErrorLog.class);
View Full Code Here

     *
     * @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

        schema.setModule(m1);

        SchemaProcessorImpl p = new SchemaProcessorImpl(null, schema);

        Location location1 = newLocation();
        ElementImpl element1 = new ElementImpl();
        element1.setElementName("cartoon");
        element1.addAttribute(new AttributeImpl("name", "flintstone"));
        element1.setLocation(location1);

        List elements1 = Collections.singletonList(element1);

        Location location2 = newLocation();
        ElementImpl element2 = new ElementImpl();
        element2.setElementName("cartoon");
        element2.addAttribute(new AttributeImpl("name", "flintstone"));
        element2.setLocation(location2);
View Full Code Here

        assertEquals(false, l1.equals(new LocationImpl(_resource2, 10, 5)));
    }

    public void testHashCodeBare()
    {
        Location l1 = new LocationImpl(_resource1);
        Location l2 = new LocationImpl(_resource1);

        assertEquals(l1.hashCode(), l2.hashCode());
    }
View Full Code Here

        assertEquals(l1.hashCode(), l2.hashCode());
    }

    public void testHashCodeLineNo()
    {
        Location l1 = new LocationImpl(_resource1, 15);
        Location l2 = new LocationImpl(_resource1, 15);

        assertEquals(l1.hashCode(), l2.hashCode());
    }
View Full Code Here

        assertEquals(l1.hashCode(), l2.hashCode());
    }

    public void testHashCodeFull()
    {
        Location l1 = new LocationImpl(_resource1, 15, 20);
        Location l2 = new LocationImpl(_resource1, 15, 20);

        assertEquals(l1.hashCode(), l2.hashCode());
    }
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.