Package org.constretto.annotation

Examples of org.constretto.annotation.Tags


* @author <a href=mailto:zapodot@gmail.com>Sondre Eikanger Kval&oslash;</a>
*/
public class ConstrettoTagExtractor {

    public static String[] findTagValueForDescription(final Description description) {
        final Tags tagValues = getClassAnnotation(description);
        if (tagValues == null) {
            return null;
        } else {
            return tagValues.value();
        }
    }
View Full Code Here


    public ConstrettoJUnit4ClassRunner(Class<?> clazz) throws InitializationError {
        super(clazz);
    }

    private String changeTagsSystemProperty() {
        Tags tags = getTestClass().getJavaClass().getAnnotation(Tags.class);
        if (tags != null) {
            String tagcsv = ConstrettoUtils.asCsv(tags.value());
            return System.setProperty(DefaultConfigurationContextResolver.TAGS, tagcsv.toString());
        }
        return System.getProperty(DefaultConfigurationContextResolver.TAGS);
    }
View Full Code Here

            System.setProperty(DefaultAssemblyContextResolver.ASSEMBLY_KEY, originalEnvironment);
        }
    }

    private String changeTagsSystemProperty() {
        Tags tags = getTestClass().getJavaClass().getAnnotation(Tags.class);
        if (tags != null) {
            return System.setProperty(DefaultConfigurationContextResolver.TAGS, ConstrettoUtils.asCsv(tags.value()));
        }
        return System.getProperty(DefaultConfigurationContextResolver.TAGS);
    }
View Full Code Here

TOP

Related Classes of org.constretto.annotation.Tags

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.