Package org.apache.openejb.testng

Examples of org.apache.openejb.testng.PropertiesBuilder


    }

    @Configuration
    public Properties configuration() {
            // datasources
        return datasource(datasource(datasource(new PropertiesBuilder(), "fo1"), "fo2"), "fo3")

                // router
                .property("router", "new://Resource?class-name=" + FailOverRouter.class.getName())
                .property("router.datasourceNames", "fo1,fo2,fo3")
View Full Code Here


    }

    @Configuration
    public Properties props() {
        nextAvailablePort = NetworkUtil.getNextAvailablePort();
        return new PropertiesBuilder().p("httpejbd.port", Integer.toString(nextAvailablePort)).build();
    }
View Full Code Here

    @Module
    public AppModule application() {
        final EjbModule ejbModule = new EjbModule(new EjbJar());
        ejbModule.getEjbJar().addEnterpriseBean(new SingletonBean(MyTimedEjb.class).localBean());

        final Properties quartzConfig = new PropertiesBuilder()
            .p("org.quartz.scheduler.instanceName", "TestScheduler")
            .p("org.quartz.scheduler.instanceId", "AUTO")
            .p("org.quartz.threadPool.class", SimpleThreadPool.class.getName())
            .p("org.quartz.threadPool.threadCount", "4")
            .p("org.quartz.threadPool.threadPriority", "5")
View Full Code Here

        return appModule;
    }

    @Configuration
    public Properties configuration() {
        return new PropertiesBuilder()
            // see src/test/resources/import-QuartzPersistenceForEJBTimersDB.sql for the init script
            .p("QuartzPersistenceForEJBTimersDB", "new://Resource?type=DataSource")
            .p("QuartzPersistenceForEJBTimersDB.JtaManaged", "true")
            .p("QuartzPersistenceForEJBTimersDB.JdbcUrl", "jdbc:hsqldb:mem:QuartzPersistenceForEJBTimersDB")
            .p("QuartzPersistenceForEJBTimersDB.UserName", "SA")
View Full Code Here

TOP

Related Classes of org.apache.openejb.testng.PropertiesBuilder

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.