Annotation Type | Description |
---|---|
InjectInto |
Is used to inject an instance into a specific
ObjectUnderTest
instance. |
InjectIntoMany |
Is used to inject an instance into multiple
ObjectUnderTest
instances. |
Mock |
Allows shorthand mock creation with the configured
MockProvider
Example:
public void Test {
@Rule
public NeedleRule needle = new NeedleRule();
@Mock
private Queue queue;
@Test
public void test(){
...
}
}
|
ObjectUnderTest |
Is used to specify an object under test.
|
Copyright © 2014. All rights reserved.