de.akquinet.jbosscc.needle.annotation
Annotation Type Mock


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface 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(){
    ...
  }
 }
 



Copyright © 2013 akquinet AG. All Rights Reserved.