Examples of PropertiesBuilder


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

Examples of org.apache.openejb.testng.PropertiesBuilder

@RunWith(ApplicationComposer.class)
public class PropertiesInjectionTest {
    @Configuration
    public Properties p() {
        return new PropertiesBuilder()
            .p("p", "new://Resource?class-name=" + PropertiesFactory.class.getName() + "&factory-name=create")
            .p("p.attr1", "v1")
            .p("p.attr2", "v2")
            .build();
    }
View Full Code Here

Examples of org.apache.openejb.testng.PropertiesBuilder

@RunWith(ApplicationComposer.class)
public class URLAsResourceTest {
    @Configuration
    public Properties config() {
        return new PropertiesBuilder()
            .p("url", "new://Resource?class-name=java.net.URL&constructor=value")
            .p("url.value", "http://tomee.apache.org")
            .build();
    }
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.