Package com.google.appengine.tck.env

Examples of com.google.appengine.tck.env.Environment


        Set<Environment> set = new HashSet<>(Arrays.asList(supported));
        assumeEnvironment(set);
    }

    private void assumeEnvironment(Set<Environment> supported) {
        final Environment environment = getEnvironment();
        Assume.assumeTrue(String.format("Unsupported environment: %s [%s]", environment, supported), supported.contains(environment));
    }
View Full Code Here


    public static String getTestSystemProperty(String key) {
        return getTestSystemProperty(key, null);
    }

    protected Environment getEnvironment() {
        Environment env = instance(Environment.class);
        return (env != null) ? env : Environment.UNKNOWN;
    }
View Full Code Here

        Environment env = instance(Environment.class);
        return (env != null) ? env : Environment.UNKNOWN;
    }

    public static Environment getEnvironment(Class<?> testClass) {
        Environment env = instance(testClass, Environment.class);
        return (env != null) ? env : Environment.UNKNOWN;
    }
View Full Code Here

TOP

Related Classes of com.google.appengine.tck.env.Environment

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.