diff options
author | Bob Lee <crazybob@crazybob.org> | 2009-09-29 09:20:16 +0000 |
---|---|---|
committer | Bob Lee <crazybob@crazybob.org> | 2009-09-29 09:20:16 +0000 |
commit | 86a455501b040523c9a22cc9db2091759314eeb2 (patch) | |
tree | 37fa09839ec3e8deb82d466d9efb6415a2b68b74 /tck | |
parent | ad06eb9a14172e97fd69320882bcaa7f05edb626 (diff) | |
download | jsr330-86a455501b040523c9a22cc9db2091759314eeb2.tar.gz |
Added Javadocs for TCK.
git-svn-id: https://atinject.googlecode.com/svn/trunk@42 3bc8319c-20ab-11de-9edc-3f40a397ab60
Diffstat (limited to 'tck')
-rw-r--r-- | tck/org/atinject/tck/Tck.java | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tck/org/atinject/tck/Tck.java b/tck/org/atinject/tck/Tck.java index cead878..c915dcf 100644 --- a/tck/org/atinject/tck/Tck.java +++ b/tck/org/atinject/tck/Tck.java @@ -23,17 +23,22 @@ import junit.framework.Test; import junit.framework.TestSuite; /** - * Call {@link #testsFor} from a JUnit {@code suite} method: + * Maufactures the compatibility test suite. Call {@link #testsFor testsFor} + * from a JUnit static {@code suite} method: * * <pre> + * import junit.framework.Test; + * import org.atinject.tck.Tck; + * * public class MyTck { * public static Test suite() { - * return Tck.testsFor(new MyInjector().getInstance(Car.class), true, true); + * Car car = new MyInjector().getInstance(Car.class); + * return Tck.testsFor(car, true, true); * } * } * </pre> * - * <p>Then, run the tests using JUnit. For example: + * <p>Run the tests using JUnit. For example: * * <pre> * java junit.textui.TestRunner MyTck @@ -61,9 +66,10 @@ public class Tck { * FuelTank}. * </ul> * - * <p>If static injection is supported, the static members of the following - * types shall also be injected: {@link org.atinject.tck.auto.Convertible - * Convertible}, {@link org.atinject.tck.auto.Tire Tire}, and {@link + * <p>If static member injection is supported, the static members of the + * following types shall also be injected: + * {@link org.atinject.tck.auto.Convertible Convertible}, + * {@link org.atinject.tck.auto.Tire Tire}, and {@link * org.atinject.tck.auto.accessories.SpareTire SpareTire}. * * @param car to test |