|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
DBOperation with common jdbc operations.TestdataBuilder.TestdataBuilder with persistence.
TestdataBuilder without persistence.
T
T and save the instance.
T and save the instance.
DatabaseRule provides access to the configured Database and
execute optional configured DBOperation before and after a test.DatabaseTestcase with the global configured
persistence unit name and the global configured DBOperation.
DatabaseTestcase with the global configured
persistence unit name and override the global configured
DBOperation with the give database operation.
DatabaseTestcase with the given persistence
unit name and the global configured DBOperation.
DatabaseTestcase with the given persistence
unit name and override the global configured DBOperation with the
give database operation.
MockProvider implementation.TestdataBuilder is constructed with a
EntityManager
Class object associated with the class or
interface with the given string name.
AccessibleObject of the injection target.
Annotation object if an annotation for the specified
type is present on the injection target, otherwise null.
Annotation classes for default mock
injections.
InjectionProvider classes.
EntityManager instance which is associated with the
configured persistence context.
EntityManager.
EntityManager, if the test is constructed with a
DatabaseTestcase instance.
EntityManagerFactory.
EntityManagerFactory.
T.
MockProvider
TransactionHelper
TestdataBuilder is constructed with a
EntityManager
ObjectUnderTest.
ObjectUnderTest
instance.ObjectUnderTest instances.T and verifies a injection target.InjectionTargetInformation for
Field injection.
InjectionTargetInformation for
Method injection.
InjectionTargetInformation for
Constructor injection.
JdbcConfiguration
MockProvider
Example:
public void Test {
@Rule
public NeedleRule needle = new NeedleRule();
@Mock
private Queue queue;
@Test
public void test(){
...
}
}
MockProvider implementation.MethodRule for the initialization of the test.ObjectUnderTest.NeedleTestcase with optional additional
injection provider.
ObjectUnderTest instantiation fails, e.g. if the
associated class object has no corresponding constructor or the class is
abstract, a primitive type or an interface.
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||