diff options
Diffstat (limited to 'tck/org/atinject/tck/meta/BrokenGetCar.java')
-rw-r--r-- | tck/org/atinject/tck/meta/BrokenGetCar.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tck/org/atinject/tck/meta/BrokenGetCar.java b/tck/org/atinject/tck/meta/BrokenGetCar.java deleted file mode 100644 index c6b2ce9..0000000 --- a/tck/org/atinject/tck/meta/BrokenGetCar.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.atinject.tck.meta; - -import org.atinject.tck.Tck; -import org.atinject.tck.Tester; -import org.atinject.tck.auto.Car; - -import junit.framework.Test; -import junit.framework.TestResult; - -/** - * We expect these tests to fail. - */ -public class BrokenGetCar { - - static class ThrowsException extends Tck { - protected Car getCar() { - throw new UnsupportedOperationException(); - } - } - - static class ReturnsNull extends Tck { - protected Car getCar() { - return null; - } - } - - static class WrongType extends Tck { - protected Car getCar() { - return new Car() { - public void check(Tester tester) { - throw new UnsupportedOperationException(); - } - }; - } - } - - public static Test suite() { - return new Test() { - public int countTestCases() { - return 3; - } - public void run(TestResult result) { - new ThrowsException().run(result); - new ReturnsNull().run(result); - new WrongType().run(result); - } - }; - } -} |