Package org.apache.hivemind.impl

Examples of org.apache.hivemind.impl.DefaultErrorHandler


        verifyControls();
    }

    public void testDupe() throws Exception
    {
        Orderer o = new Orderer(new DefaultErrorHandler(), "cartoon character");

        o.add("FRED", "flintstone", null, null);
        o.add("BARNEY", "rubble", null, null);

        interceptLogging();
View Full Code Here


        verifyControls();
    }

    public void testPreStartDupe() throws Exception
    {
        Orderer o = new Orderer(new DefaultErrorHandler(), "cartoon character");

        o.add("FRED", "fred", "*", null);
        o.add("BARNEY", "barney", "*", null);
        o.add("WILMA", "wilma", "betty", null);
        o.add("BETTY", "betty", null, null);
View Full Code Here

        verifyControls();
    }

    public void testPostStarDupe() throws Exception
    {
        Orderer o = new Orderer(new DefaultErrorHandler(), "cartoon character");

        o.add("FRED", "fred", null, "wilma");
        o.add("BARNEY", "barney", null, "*");
        o.add("WILMA", "wilma", null, "*");
        o.add("BETTY", "betty", null, null);
View Full Code Here

                + "first, conflicting with 'barney' (at unknown location).");
    }

    public void testNoObjects() throws Exception
    {
        Orderer o = new Orderer(new DefaultErrorHandler(), "cartoon character");

        List l = o.getOrderedObjects();

        assertEquals(0, l.size());
    }
View Full Code Here

    }

    public void testPrivateSchema() throws Exception
    {
        Resource location = getResource("PrivateSchema.xml");
        DefaultErrorHandler eh = new DefaultErrorHandler();

        XmlResourceProcessor p = new XmlResourceProcessor(_resolver, eh);

        ModuleDescriptor md = p.processResource(location);
View Full Code Here

public class TestXmlResourceProcessor extends FrameworkTestCase
{
    public void testMissingURLResource() throws Exception
    {
        XmlResourceProcessor processor = new XmlResourceProcessor(new DefaultClassResolver(),
                new DefaultErrorHandler());

        Resource[] missingResources = new Resource[]
        { new FileResource("foo"), new URLResource(new URL("http://www.foo.com/foo")) };

        for (int i = 0; i < missingResources.length; i++)
View Full Code Here

public class TestModuleDescriptor extends HiveMindTestCase
{
    public void testAddDupeSchema() throws Exception
    {
        ModuleDescriptor md = new ModuleDescriptor(new DefaultClassResolver(),
                new DefaultErrorHandler());
        md.setModuleId("foo");

        Resource r = new ClasspathResource(new DefaultClassResolver(), "/foo/bar");
        Location l1 = new LocationImpl(r, 20);
        Location l2 = new LocationImpl(r, 97);
View Full Code Here

public class TestXmlResourceProcessor extends FrameworkTestCase
{
    public void testMissingURLResource() throws Exception
    {
        XmlResourceProcessor processor = new XmlResourceProcessor(new DefaultClassResolver(),
                new DefaultErrorHandler());

        Resource[] missingResources = new Resource[]
        { new FileResource("foo"), new URLResource(new URL("http://www.foo.com/foo")) };

        for (int i = 0; i < missingResources.length; i++)
View Full Code Here

    private ModuleDescriptor _md;

    public RegistrySerializer()
    {
        _handler = new DefaultErrorHandler();
    }
View Full Code Here

     *
     * @deprecated to be removed in release 4.1
     */
    public SpecificationParser(ClassResolver resolver, SpecFactory factory)
    {
        this(new DefaultErrorHandler(), LogFactory.getLog(SpecificationParser.class), resolver,
                factory);
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.impl.DefaultErrorHandler

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.