de.akquinet.jbosscc.needle
Class NeedleContext

java.lang.Object
  extended by de.akquinet.jbosscc.needle.NeedleContext

public class NeedleContext
extends Object


Constructor Summary
NeedleContext(Object test)
           
 
Method Summary
 void addInjectedObject(Object key, Object instance)
           
 void addObjectUnderTest(String id, Object instance)
           
 List<Field> getAnnotatedTestcaseFields(Class<? extends Annotation> annotationClass)
           
<X> X
getInjectedObject(Object key)
           
 Collection<Object> getInjectedObjects()
           
 Collection<Object> getObjectsUnderTest()
           
 Object getObjectUnderTest(String id)
           
 Object getTest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeedleContext

public NeedleContext(Object test)
Method Detail

getTest

public Object getTest()

getInjectedObject

public <X> X getInjectedObject(Object key)

getInjectedObjects

public Collection<Object> getInjectedObjects()

addInjectedObject

public void addInjectedObject(Object key,
                              Object instance)

getObjectUnderTest

public Object getObjectUnderTest(String id)

addObjectUnderTest

public void addObjectUnderTest(String id,
                               Object instance)

getObjectsUnderTest

public Collection<Object> getObjectsUnderTest()

getAnnotatedTestcaseFields

public List<Field> getAnnotatedTestcaseFields(Class<? extends Annotation> annotationClass)


Copyright © 2013 akquinet AG. All Rights Reserved.