Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2009-12-01 10:42:52 -0500
committerkmoore2009-12-01 10:42:52 -0500
commit04c344085aefe043a52c1394afe35b50acfa54ff (patch)
tree4ff9ce3e26ba95f7fe9a629e5b35025e00d2dc75
parentad57d60958e249b4031db34bb48d728e60ed2131 (diff)
downloadwebtools.dali-04c344085aefe043a52c1394afe35b50acfa54ff.tar.gz
webtools.dali-04c344085aefe043a52c1394afe35b50acfa54ff.tar.xz
webtools.dali-04c344085aefe043a52c1394afe35b50acfa54ff.zip
fixed failing OrderColumn resource model tests
-rw-r--r--jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jpa2/resource/java/OrderColumn2_0AnnotationTests.java21
1 files changed, 16 insertions, 5 deletions
diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jpa2/resource/java/OrderColumn2_0AnnotationTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jpa2/resource/java/OrderColumn2_0AnnotationTests.java
index 676a2829aa..a515e3530e 100644
--- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jpa2/resource/java/OrderColumn2_0AnnotationTests.java
+++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jpa2/resource/java/OrderColumn2_0AnnotationTests.java
@@ -128,7 +128,9 @@ public class OrderColumn2_0AnnotationTests extends JavaResourceModel2_0TestCase
column.setName(null);
assertNull(column.getName());
- assertSourceDoesNotContain("@OrderColumn", cu);
+ column = (OrderColumn2_0Annotation) attributeResource.getAnnotation(JPA2_0.ORDER_COLUMN);
+ assertNotNull(column);
+ assertSourceContains("@OrderColumn", cu);
}
public void testGetColumnDefinition() throws Exception {
@@ -155,7 +157,9 @@ public class OrderColumn2_0AnnotationTests extends JavaResourceModel2_0TestCase
column.setColumnDefinition(null);
- assertSourceDoesNotContain("@OrderColumn", cu);
+ column = (OrderColumn2_0Annotation) attributeResource.getAnnotation(JPA2_0.ORDER_COLUMN);
+ assertNotNull(column);
+ assertSourceContains("@OrderColumn", cu);
}
public void testGetNullable() throws Exception {
@@ -182,7 +186,9 @@ public class OrderColumn2_0AnnotationTests extends JavaResourceModel2_0TestCase
assertSourceContains("@OrderColumn(nullable = false)", cu);
column.setNullable(null);
- assertSourceDoesNotContain("@OrderColumn", cu);
+ column = (OrderColumn2_0Annotation) attributeResource.getAnnotation(JPA2_0.ORDER_COLUMN);
+ assertNotNull(column);
+ assertSourceContains("@OrderColumn", cu);
}
public void testGetInsertable() throws Exception {
@@ -209,7 +215,9 @@ public class OrderColumn2_0AnnotationTests extends JavaResourceModel2_0TestCase
assertSourceContains("@OrderColumn(insertable = false)", cu);
column.setInsertable(null);
- assertSourceDoesNotContain("@OrderColumn", cu);
+ column = (OrderColumn2_0Annotation) attributeResource.getAnnotation(JPA2_0.ORDER_COLUMN);
+ assertNotNull(column);
+ assertSourceContains("@OrderColumn", cu);
}
public void testGetUpdatable() throws Exception {
@@ -236,7 +244,10 @@ public class OrderColumn2_0AnnotationTests extends JavaResourceModel2_0TestCase
assertSourceContains("@OrderColumn(updatable = false)", cu);
column.setUpdatable(null);
- assertSourceDoesNotContain("@OrderColumn", cu);
+
+ column = (OrderColumn2_0Annotation) attributeResource.getAnnotation(JPA2_0.ORDER_COLUMN);
+ assertNotNull(column);
+ assertSourceContains("@OrderColumn", cu);
}
}

Back to the top