Package org.apache.wink.common.internal.lifecycle

Examples of org.apache.wink.common.internal.lifecycle.DefaultLifecycleManager


    private static class Dummy {
    }

    @SuppressWarnings("unchecked")
    public void testNull() {
        DefaultLifecycleManager defaultOFFactory = new DefaultLifecycleManager();

        try {
            defaultOFFactory.createObjectFactory(null);
        } catch (NullPointerException e) {
            return;
        }
        fail("Null pointet exception should be thrown.");
    }
View Full Code Here


        fail("Null pointet exception should be thrown.");
    }

    @SuppressWarnings("unchecked")
    public void testResourceBean() {
        DefaultLifecycleManager defaultOFFactory = new DefaultLifecycleManager();

        try {
            defaultOFFactory.createObjectFactory(DynamicResource.class);
        } catch (IllegalArgumentException e) {
            return;
        }
        fail("IllegalArgumentException should be thrown.");
    }
View Full Code Here

        fail("IllegalArgumentException should be thrown.");
    }

    @SuppressWarnings("unchecked")
    public void testDummy() {
        DefaultLifecycleManager defaultOFFactory = new DefaultLifecycleManager();

        try {
            defaultOFFactory.createObjectFactory(new Dummy());
            fail("IllegalArgumentException should be thrown.");
        } catch (IllegalArgumentException e) {
        }

        try {
            defaultOFFactory.createObjectFactory(Dummy.class);
            fail("IllegalArgumentException should be thrown.");
        } catch (IllegalArgumentException e) {
        }

    }
View Full Code Here

TOP

Related Classes of org.apache.wink.common.internal.lifecycle.DefaultLifecycleManager

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.