Package org.kie.spring.beans.annotations

Examples of org.kie.spring.beans.annotations.AnnotatedKieBean


    @Test
    public void testKieBase() throws Exception {
        KieBase kbase = (KieBase) context.getBean("drl_kiesample3");
        assertNotNull(kbase);
        AnnotatedKieBean sampleBean = (AnnotatedKieBean) context.getBean("annotatedKieBean");
        assertNotNull(sampleBean);
        assertNotNull(sampleBean.getKieBase() );
        assertTrue(sampleBean.getKieBase() instanceof KieBase );
    }
View Full Code Here


        assertTrue(sampleBean.getKieBase() instanceof KieBase );
    }

    @Test
    public void testSetterKieBase() throws Exception {
        AnnotatedKieBean sampleBean = (AnnotatedKieBean) context.getBean("annotatedKieBean");
        assertNotNull(sampleBean);
        assertNotNull(sampleBean.getKieBase2() );
        assertTrue(sampleBean.getKieBase2() instanceof KieBase );
    }
View Full Code Here

        assertTrue(sampleBean.getKieBase2() instanceof KieBase );
    }

    @Test
    public void testStatelessKSessionInjection() throws Exception {
        AnnotatedKieBean sampleBean = (AnnotatedKieBean) context.getBean("annotatedKieBean");
        assertNotNull(sampleBean);
        assertNotNull(sampleBean.getKieSession() );
        assertTrue(sampleBean.getKieSession() instanceof StatelessKieSession);
    }
View Full Code Here

        assertTrue(sampleBean.getKieSession() instanceof StatelessKieSession);
    }

    @Test
    public void testStatefulKSessionInjection() throws Exception {
        AnnotatedKieBean sampleBean = (AnnotatedKieBean) context.getBean("annotatedKieBean");
        assertNotNull(sampleBean);
        assertNotNull(sampleBean.getStatefulSession() );
        assertTrue(sampleBean.getStatefulSession() instanceof KieSession);
    }
View Full Code Here

TOP

Related Classes of org.kie.spring.beans.annotations.AnnotatedKieBean

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.