@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface TestDelegate
This annotation can be use to delegate test execution to a provided test
framework. For example, assuming that the exposed interface for the framework
is a class TestFrameworkInterface
(which will be required to be
annotated with
), this framework can be
used in the following ways :
TestInterface
@TestDelegate public final TestFrameworkInterface myDelegation = new TestFrameworkInterface(...);or
@TestDelegate public final Supplier<TestFrameworkInterface> myDelegation = ()->new TestFrameworkInterface(...);
Copyright © 2015 Powerunit. All rights reserved.