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


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface ObjectUnderTest

Is used to specify an object under test. The annotated fields will be initialized by the NeedleTestcase.


Optional Element Summary
 String id
          (Optional) The id of the object under test.
 Class<?> implementation
          (Optional) The implementation class of the object under test.
 boolean postConstruct
          (Optional) execute @PostConstruct method of a class under test Note: Behavior in an inheritance hierarchy is not defined by the common annotations specification Default is false
 

implementation

public abstract Class<?> implementation
(Optional) The implementation class of the object under test.

Default is the field type.

Default:
java.lang.Void.class

id

public abstract String id
(Optional) The id of the object under test.

Default is the field name.

Default:
""

postConstruct

public abstract boolean postConstruct
(Optional) execute @PostConstruct method of a class under test

Note: Behavior in an inheritance hierarchy is not defined by the common annotations specification

Default is false

Default:
false


Copyright © 2013 akquinet AG. All Rights Reserved.