Package org.apache.openejb.config.sys

Examples of org.apache.openejb.config.sys.Openejb


            configuration.setProperty("httpejbd.print", "true");
            configuration.setProperty("httpejbd.indent.xml", "true");
            configuration.setProperty("logging.level.OpenEJB.server.http", "FINE");
        }

        Openejb openejb = null;
        final List<Method> configs = new ArrayList<Method>();
        configs.addAll(testClassFinder.findAnnotatedMethods(Configuration.class));
        configs.addAll(testClassFinder.findAnnotatedMethods(org.apache.openejb.junit.Configuration.class));
        for (final Method method : configs) {
            final Object o = method.invoke(testInstance);
View Full Code Here


        final String xml = "<?xml version=\"1.0\"?>" +
                "<openejb>" +
                "   <Resource id=\"foo\" aliases=\"bar\" type=\"DataSource\" />" +
                "</openejb>";

        final Openejb openejb = JaxbOpenejb.readConfig(new InputSource(new ByteArrayInputStream(xml.getBytes())));
        assertEquals(1, openejb.getResource().size());

        final Resource resource = openejb.getResource().iterator().next();
        assertEquals(1, resource.getAliases().size());
        assertEquals("foo", resource.getId());
        assertEquals("bar", resource.getAliases().iterator().next());
    }
View Full Code Here

            configuration.setProperty("httpejbd.print", "true");
            configuration.setProperty("httpejbd.indent.xml", "true");
            configuration.setProperty("logging.level.OpenEJB.server.http", "FINE");
        }

        Openejb openejb = null;
        final Map<Object, List<Method>> configs = new HashMap<>();
        findAnnotatedMethods(configs, Configuration.class);
        findAnnotatedMethods(configs, org.apache.openejb.junit.Configuration.class);
        for (final Map.Entry<Object, List<Method>> method : configs.entrySet()) {
            for (final Method m : method.getValue()) {
View Full Code Here

TOP

Related Classes of org.apache.openejb.config.sys.Openejb

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.