Package org.apache.openejb.junit.jee.config

Examples of org.apache.openejb.junit.jee.config.PropertyFile


            if (is != null) {
                properties.load(is);
            }
        }

        final PropertyFile propertyFile = clazz.getAnnotation(PropertyFile.class);
        if (propertyFile != null) {
            final String path = propertyFile.value();
            if (!path.isEmpty()) {
                InputStream is = clazz.getClassLoader().getResourceAsStream(path);
                if (is == null) {
                    final File file = new File(path);
                    if (file.exists()) {
View Full Code Here


        protected void before() throws Exception {
            final Class<?> clazz = getTestClass().getJavaClass();
            properties = new java.util.Properties();
            properties.put(OpenEjbContainer.Provider.OPENEJB_ADDITIONNAL_CALLERS_KEY, clazz.getName());

            final PropertyFile propertyFile = clazz.getAnnotation(PropertyFile.class);
            if (propertyFile != null) {
                final String path = propertyFile.value();
                if (!path.isEmpty()) {
                    InputStream is = clazz.getClassLoader().getResourceAsStream(path);
                    if (is == null) {
                        final File file = new File(path);
                        if (file.exists()) {
View Full Code Here

TOP

Related Classes of org.apache.openejb.junit.jee.config.PropertyFile

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.