hprange / wounit

The WOUnit framework contains a set of utilities for testing WebObjects applications using JUnit 4.7 or later capabilities.
http://hprange.github.io/wounit/
Apache License 2.0
19 stars 18 forks source link

Add parameter to allow creation of dummy objects for abstract types #28

Open hprange opened 12 years ago

hprange commented 12 years ago

Occasionally, creating a dummy object for a abstract type is desirable. We can add a of parameter to the @Dummy annotation describing the concrete type that should be created like this:

@Dummy(of=Concrete.class)
Abstract dummyAbstract;

We must also support the creation of an array of dummies:

@Dummy(of=Concrete.class, size=2)
NSArray<Abstract> dummyAbstract;