Annotation Interface Features


@Retention(RUNTIME) @Target(TYPE) public @interface Features
A feature is Nuxeo Runner extension that is able to configure the runner from additional annotations and using a specific logic.

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.

Author:
Bogdan Stefanescu
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends RunnerFeature>[]