summaryrefslogtreecommitdiffstats
path: root/annotation/src
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-02-22 16:47:08 -0800
committerElliott Hughes <enh@google.com>2010-02-22 16:47:08 -0800
commit703ef27278351bd0fd1d50cbd565826f217571da (patch)
tree0b6776cc75da2fb9c59bced377d1fbaf10677e3e /annotation/src
parent8b7350e17c4a98aedc024dc593260d92154f0b1f (diff)
downloadlibcore-703ef27278351bd0fd1d50cbd565826f217571da.zip
libcore-703ef27278351bd0fd1d50cbd565826f217571da.tar.gz
libcore-703ef27278351bd0fd1d50cbd565826f217571da.tar.bz2
Remove useless annotation cruft from tests for: annotation, archive, concurrent, and suncompat.
22 files (and 4 modules) down, 1000 to go...
Diffstat (limited to 'annotation/src')
-rw-r--r--annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/AnnotationTest.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/AnnotationTest.java b/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/AnnotationTest.java
index c50c0e8..e9657de 100644
--- a/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/AnnotationTest.java
+++ b/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/AnnotationTest.java
@@ -17,11 +17,6 @@
package org.apache.harmony.annotation.tests.java.lang.annotation;
-import dalvik.annotation.TestLevel;
-import dalvik.annotation.TestTargetClass;
-import dalvik.annotation.TestTargetNew;
-import dalvik.annotation.TestTargets;
-
import junit.framework.TestCase;
import java.lang.annotation.Annotation;
@@ -35,23 +30,8 @@ import java.util.Map;
/**
* Test case of java.lang.annotation.Annotation
*/
-@TestTargetClass(value = Annotation.class,
- untestedMethods = {
- @TestTargetNew(
- level = TestLevel.NOT_NECESSARY,
- notes = "the spec does not require any specific output (although @something is probable)",
- method = "toString",
- args = {}
- )}
-)
public class AnnotationTest extends TestCase {
- @TestTargetNew(
- level = TestLevel.COMPLETE,
- notes = "",
- method = "annotationType",
- args = {}
- )
public void test_annotationType() {
Annotation [] annotations = AnnotatedClass.class.getDeclaredAnnotations();
assertEquals(1, annotations.length);
@@ -59,20 +39,6 @@ public class AnnotationTest extends TestCase {
assertEquals(TestAnnotation1.class, anno.annotationType());
}
- @TestTargets({
- @TestTargetNew(
- level = TestLevel.COMPLETE,
- notes = "",
- method = "equals",
- args = { Object.class}
- ),
- @TestTargetNew(
- level = TestLevel.PARTIAL_COMPLETE,
- notes = "",
- method = "hashCode",
- args = {}
- )
- })
public void test_equals() throws Exception {
// test type
Method m1 = AnnotatedClass2.class
@@ -133,12 +99,6 @@ public class AnnotationTest extends TestCase {
}
}
- @TestTargetNew(
- level = TestLevel.PARTIAL_COMPLETE,
- notes = "",
- method = "hashCode",
- args = {}
- )
public void test_hashCode() throws SecurityException, NoSuchMethodException {
Annotation a1 = AnnotatedClass.class.getDeclaredAnnotations()[0];
assertEquals(a1.hashCode(), (127 * "value".hashCode() ^ "foobar".hashCode()));