ma.glasnost.orika.test
Annotation Type DynamicSuite.Scenario


@Retention(value=RUNTIME)
@Target(value=TYPE)
public static @interface DynamicSuite.Scenario

The Scenario annotation is used to mark the dynamic suite with a specific name that should be appended to each executed test name. This is useful in the case where you want to create multiple copies of a particular dynamic suite definition, but would like to run them with slightly different configuration for the entire suite (which could be achieved using the @BeforeClass and @AfterClass annotations for setup/tear-down of the entire suite).

If the 'name' parameter is not supplied, then the class simpleName is used as a default.
Without the unique scenario name, multiple copies of the tests resolved by the suite would not be run as JUnit avoids running the same test more than once, where uniqueness based on test name.

See Also:
@@org.junit.BeforeClass, @org.junit.AfterClass

Optional Element Summary
 String name
           
 

name

public abstract String name
Default:
""


Copyright © 2012 Glasnost. All Rights Reserved.