Package org.apache.openejb.testng

Examples of org.apache.openejb.testng.PropertiesBuilder


        port = NetworkUtil.getNextAvailablePort();
    }

    @Configuration
    public Properties props() {
        return new PropertiesBuilder()
            .p("httpejbd.port", Integer.toString(port))
            .p(OpenEjbContainer.OPENEJB_EMBEDDED_REMOTABLE, "true")
            .build();
    }
View Full Code Here


        port = NetworkUtil.getNextAvailablePort();
    }

    @Configuration
    public Properties props() {
        return new PropertiesBuilder().p("httpejbd.port", Integer.toString(port)).build();
    }
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

        port = NetworkUtil.getNextAvailablePort();
    }

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

        port = NetworkUtil.getNextAvailablePort();
    }

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

        replaceTest(8080, 8005, 8009, 1111, 2222, 3333);
    }

    private void replaceTest(int http1, int stop1, int ajp1, int http2, int stop2, int ajp2) throws IOException {
        final File target = write("target/setup1.xml", serverXml(http1, stop1, ajp1));
        Setup.replace(new PropertiesBuilder()
                .p(Integer.toString(http1), Integer.toString(http2))
                .p(Integer.toString(stop1), Integer.toString(stop2))
                .p(Integer.toString(ajp1), Integer.toString(ajp2))
                .asMap(), target, true);
        assertEquals(serverXml(http2, stop2, ajp2), IO.slurp(target));
View Full Code Here

@RunWith(ApplicationComposer.class)
public class ServiceInfosTest {
    @Configuration
    public Properties config() {
        return new PropertiesBuilder().p("ds", "new://Resource?type=DataSource").build();
    }
View Full Code Here

@EnableServices("jax-ws")
@RunWith(ApplicationComposer.class)
public class DynamicPortTest {
    @Configuration
    public Properties config() {
        return new PropertiesBuilder().property("httpejbd.port", "0").build();
    }
View Full Code Here

    }

    @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

@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

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.