@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Features
Let say you want a test that launches a Nuxeo Core with webengine and webdriver enabled. You can activate these features using the Feature annotation like this:
@RunWith(NuxeoRunner.class) @Features({ CoreFeature.class, WebDriverFeature.class, WebEngineFeature.class }) public class MyTest { }or use the
@Features
annotation on an interface or subclass of your test class. All the features
presents on the class hierarchy will be collected and used.
Features must implement RunnerFeature class.
Modifier and Type | Required Element and Description |
---|---|
Class<? extends RunnerFeature>[] |
value |
public abstract Class<? extends RunnerFeature>[] value
Copyright © 2018 Nuxeo. All rights reserved.