Examples of BeanWithReleaseId


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

        assertNotNull(p);
    }

    @Test
    public void testAnnotatedBeanKContainer() throws Exception {
        BeanWithReleaseId bean = context.getBean("annotatedBean", BeanWithReleaseId.class);
        assertNotNull(bean);
        assertNotNull(bean.getKieContainer());
    }
View Full Code Here

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

        assertNotNull(bean.getKieContainer());
    }

    @Test
    public void testAnnotatedBeanKieBase() throws Exception {
        BeanWithReleaseId bean = context.getBean("annotatedBean", BeanWithReleaseId.class);
        assertNotNull(bean);
        assertNotNull(bean.getKieBase());
    }
View Full Code Here

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

        assertNotNull(bean.getKieBase());
    }

    @Test
    public void testAnnotatedBeanKieSession() throws Exception {
        BeanWithReleaseId bean = context.getBean("annotatedBean", BeanWithReleaseId.class);
        assertNotNull(bean);
        assertNotNull(bean.getKieSession());
    }
View Full Code Here

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

        assertNotNull(context);
    }

    @Test
    public void testKContainer() throws Exception {
        BeanWithReleaseId sampleBean = (BeanWithReleaseId) context.getBean("sampleBean");
        assertNotNull(sampleBean);
        assertNotNull(sampleBean.getKieContainer() );
        assertTrue(sampleBean.getKieContainer() instanceof KieContainer );
        ReleaseId releaseId = sampleBean.getKieContainer().getReleaseId();
        assertTrue("named-kiesession".equalsIgnoreCase(releaseId.getArtifactId()));
    }
View Full Code Here

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

        assertTrue("named-kiesession".equalsIgnoreCase(releaseId.getArtifactId()));
    }

    @Test
    public void testKieBase() throws Exception {
        BeanWithReleaseId sampleBean = (BeanWithReleaseId) context.getBean("sampleBean");
        assertNotNull(sampleBean);
        assertNotNull(sampleBean.getKieBase() );
        assertTrue(sampleBean.getKieBase() instanceof KieBase );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.