diff options
author | mtaal | 2008-04-04 11:50:30 +0000 |
---|---|---|
committer | mtaal | 2008-04-04 11:50:30 +0000 |
commit | c86c1bfd15b4a75fa53bcab12c8f9c235f28bdee (patch) | |
tree | a8e8c477d2cc73ead651a6aea4db23b972725044 /tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations | |
parent | b491ddb517b4fbd4c5e22ad3ec04fcbbf5c89d9d (diff) | |
download | org.eclipse.emf.teneo-c86c1bfd15b4a75fa53bcab12c8f9c235f28bdee.tar.gz org.eclipse.emf.teneo-c86c1bfd15b4a75fa53bcab12c8f9c235f28bdee.tar.xz org.eclipse.emf.teneo-c86c1bfd15b4a75fa53bcab12c8f9c235f28bdee.zip |
[224991]
[225717]
Diffstat (limited to 'tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations')
2 files changed, 6 insertions, 17 deletions
diff --git a/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/InheritanceAnnotationAction.java b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/InheritanceAnnotationAction.java index 74ae866f5..ac57c5de6 100644 --- a/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/InheritanceAnnotationAction.java +++ b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/InheritanceAnnotationAction.java @@ -39,7 +39,7 @@ import org.eclipse.emf.teneo.test.stores.TestStore; * Tests annotations to direct the inheritance mapping. * * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ */ public class InheritanceAnnotationAction extends AbstractTestAction { @@ -71,10 +71,8 @@ public class InheritanceAnnotationAction extends AbstractTestAction { if (address.getName().compareTo("empty") == 0) { assertFalse(((USAddress) address).isSetState()); - assertFalse(((USAddress) address).isSetZip()); } else { assertTrue(((USAddress) address).isSetState()); - assertTrue(((USAddress) address).isSetZip()); } } } @@ -104,12 +102,8 @@ public class InheritanceAnnotationAction extends AbstractTestAction { emptyaddress.setName("empty"); emptyaddress.setCity("empty"); emptyaddress.setStreet("empty"); - if (emptyaddress.isSetState()) { - emptyaddress.unsetState(); - } - if (emptyaddress.isSetZip()) { - emptyaddress.unsetZip(); - } + emptyaddress.setState(USState.AK_LITERAL); + emptyaddress.setZip(new BigInteger("1231")); store.store(usaddress); store.store(emptyaddress); diff --git a/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/InheritanceAnnotationTablePerClassAction.java b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/InheritanceAnnotationTablePerClassAction.java index f9df60a4e..4115068ef 100644 --- a/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/InheritanceAnnotationTablePerClassAction.java +++ b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/annotations/InheritanceAnnotationTablePerClassAction.java @@ -40,7 +40,7 @@ import org.eclipse.emf.teneo.test.stores.TestStore; * Tests annotations to direct the inheritance mapping. * * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ */ public class InheritanceAnnotationTablePerClassAction extends AbstractTestAction { @@ -75,7 +75,6 @@ public class InheritanceAnnotationTablePerClassAction extends AbstractTestAction if (address.getName().compareTo("empty") == 0) { assertFalse(((USAddress) address).isSetState()); - assertFalse(((USAddress) address).isSetZip()); } else { assertTrue(((USAddress) address).isSetState()); assertTrue(((USAddress) address).isSetZip()); @@ -114,12 +113,8 @@ public class InheritanceAnnotationTablePerClassAction extends AbstractTestAction emptyaddress.setName("empty"); emptyaddress.setCity("empty"); emptyaddress.setStreet("empty"); - if (emptyaddress.isSetState()) { - emptyaddress.unsetState(); - } - if (emptyaddress.isSetZip()) { - emptyaddress.unsetZip(); - } + emptyaddress.setZip(new BigInteger("123")); + emptyaddress.setState(USState.AK_LITERAL); store.store(usaddress); store.store(emptyaddress); |