Package org.drools.spring.metadata

Examples of org.drools.spring.metadata.ApplicationDataArgumentMetadata


    private MockControl controlRule = mocks.createControl(Rule.class, new Class[]{String.class}, new Object[]{"for-test"});
    private Rule mockRule = (Rule) controlRule.getMock();

    public void testNewWithNullIdentifier() {
        try {
            new ApplicationDataArgumentMetadata(null, String.class);
            fail("expected IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // expected
        }
    }
View Full Code Here


        }
    }

    public void testNewWithBlankIdentifier() {
        try {
            new ApplicationDataArgumentMetadata("  ", String.class);
            fail("expected IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // expected
        }
    }
View Full Code Here

        }
    }

    public void testNewWithNullParameterClass() {
        try {
            new ApplicationDataArgumentMetadata("id", null);
            fail("expected IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // expected
        }
    }
View Full Code Here

            // expected
        }
    }

    public void testCreateArgument() throws Exception {
        ApplicationDataArgumentMetadata metadata =
                new ApplicationDataArgumentMetadata("id", String.class);

        mocks.replay();

        Argument argument = metadata.createArgument(mockRule);

        mocks.verify();

        assertTrue(argument instanceof ApplicationDataArgument);
        ApplicationDataArgument appDataArgument = (ApplicationDataArgument)argument;
View Full Code Here

TOP

Related Classes of org.drools.spring.metadata.ApplicationDataArgumentMetadata

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.