Package org.zanata.feature

Examples of org.zanata.feature.Feature


     * annotation on method takes precedence over annotation on class. At the
     * moment class level annotation will cause multiple entries in the result
     * if there are more than one test methods.
     */
    private static Optional<Feature> getFeature(Description description) {
        Feature testClassFeature =
                description.getTestClass().getAnnotation(Feature.class);
        Feature testMethodFeature = description.getAnnotation(Feature.class);
        return Optional.fromNullable(testMethodFeature).or(
                Optional.fromNullable(testClassFeature));
    }
View Full Code Here


    private void reportFeature(FeatureEntry.TestResult result,
            String displayName) {
        if (currentFeature.get() == null) {
            return;
        }
        Feature feature = currentFeature.get();
        FeatureEntry entry = new FeatureEntry(feature, displayName, result);
        if (fileReport) {
            entries.add(entry);

        } else {
View Full Code Here

TOP

Related Classes of org.zanata.feature.Feature

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.