blob: 0a4a08ac7e0cd6ba12e43d69669ff7f60f467dc3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.emf.compare.ide.ui.tests.framework.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.eclipse.emf.compare.ide.ui.tests.framework.ResolutionStrategyID;
/**
* Annotation used to select the resolution strategies used for the test class. For each resolution strategy,
* the test methods will be run once.
*
* @author <a href="mailto:mathieu.cartaud@obeo.fr">Mathieu Cartaud</a>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ResolutionStrategies {
/**
* The list of resolution strategies to test. If the annotation is used empty, the default array will be
* returned (only workspace resolution strategy). If the annotation is not used the resolution strategies
* defined in a default array in the class EMFCompareGitTestRunner will be used.
*
* @return the value or the default array if user specify nothing
*/
ResolutionStrategyID[] value() default {ResolutionStrategyID.WORKSPACE };
}