Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000')
-rw-r--r--org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000/TC1000SimpleContentModelBuilder.java10
-rw-r--r--org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000/TC1000SimpleContentTests.java7
2 files changed, 7 insertions, 10 deletions
diff --git a/org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000/TC1000SimpleContentModelBuilder.java b/org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000/TC1000SimpleContentModelBuilder.java
index 6106244a..325dcb69 100644
--- a/org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000/TC1000SimpleContentModelBuilder.java
+++ b/org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000/TC1000SimpleContentModelBuilder.java
@@ -12,8 +12,7 @@
package org.eclipse.rmf.tests.reqif10.serialization.uc001.tc1000;
import java.math.BigInteger;
-
-import javax.xml.datatype.XMLGregorianCalendar;
+import java.util.GregorianCalendar;
import org.eclipse.emf.common.util.EList;
import org.eclipse.rmf.reqif10.AttributeDefinitionBoolean;
@@ -79,8 +78,7 @@ public class TC1000SimpleContentModelBuilder extends SimpleModelBuilder {
SpecObject specObject;
/**
- * @throws Exception
- *
+ * @throws Exception
*/
public TC1000SimpleContentModelBuilder() throws Exception {
super("ID_TC1000_ReqIfHeader", "TC 1000 'Simple Content'");
@@ -325,8 +323,8 @@ public class TC1000SimpleContentModelBuilder extends SimpleModelBuilder {
}
- public SpecObject createTC1000SpecObject(String identifier, XMLGregorianCalendar lastChangeDate, boolean tc1000t, boolean tc1000f,
- BigInteger tc1000_integer, String tc1000_text, Double tc1000_real, XMLGregorianCalendar tc1000_lastChangeDate, EnumValue tc1000_enumvalue) {
+ public SpecObject createTC1000SpecObject(String identifier, GregorianCalendar lastChangeDate, boolean tc1000t, boolean tc1000f,
+ BigInteger tc1000_integer, String tc1000_text, Double tc1000_real, GregorianCalendar tc1000_lastChangeDate, EnumValue tc1000_enumvalue) {
SpecObject specObject = ReqIF10Factory.eINSTANCE.createSpecObject();
specObject.setIdentifier(identifier);
specObject.setLastChange(tc1000_lastChangeDate);
diff --git a/org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000/TC1000SimpleContentTests.java b/org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000/TC1000SimpleContentTests.java
index 5d45c0ae..e14c2e77 100644
--- a/org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000/TC1000SimpleContentTests.java
+++ b/org.eclipse.rmf.tests.reqif10.serialization/src/org/eclipse/rmf/tests/reqif10/serialization/uc001/tc1000/TC1000SimpleContentTests.java
@@ -26,7 +26,6 @@ import junit.framework.Assert;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature.Setting;
import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
import org.eclipse.rmf.reqif10.AttributeValue;
import org.eclipse.rmf.reqif10.AttributeValueBoolean;
import org.eclipse.rmf.reqif10.AttributeValueDate;
@@ -35,6 +34,7 @@ import org.eclipse.rmf.reqif10.AttributeValueInteger;
import org.eclipse.rmf.reqif10.AttributeValueReal;
import org.eclipse.rmf.reqif10.AttributeValueString;
import org.eclipse.rmf.reqif10.ReqIF;
+import org.eclipse.rmf.reqif10.ReqIF10Package;
import org.eclipse.rmf.reqif10.ReqIFContent;
import org.eclipse.rmf.reqif10.SpecObject;
import org.eclipse.rmf.reqif10.SpecObjectType;
@@ -104,8 +104,7 @@ public class TC1000SimpleContentTests extends AbstractTestCase {
assertTrue(loadedReqIF.getTheHeader().isSetSourceToolId());
assertTrue(loadedReqIF.getTheHeader().isSetTitle());
- assertEquals(originalReqIF.getTheHeader().getCreationTime().toGregorianCalendar(), loadedReqIF.getTheHeader().getCreationTime()
- .toGregorianCalendar());
+ assertEquals(originalReqIF.getTheHeader().getCreationTime().getTime(), loadedReqIF.getTheHeader().getCreationTime().getTime());
assertEquals(originalReqIF.getTheHeader().getIdentifier(), loadedReqIF.getTheHeader().getIdentifier());
assertEquals(originalReqIF.getTheHeader().getReqIFToolId(), loadedReqIF.getTheHeader().getReqIFToolId());
assertEquals(originalReqIF.getTheHeader().getReqIFVersion(), loadedReqIF.getTheHeader().getReqIFVersion());
@@ -236,7 +235,7 @@ public class TC1000SimpleContentTests extends AbstractTestCase {
assertTrue(attributeValue instanceof AttributeValueDate);
AttributeValueDate attributeValueDate = (AttributeValueDate) attributeValue;
assertTrue(attributeValueDate.isSetTheValue());
- assertEquals(EcoreUtil.createFromString(XMLTypePackage.eINSTANCE.getDateTime(), "2002-05-30T09:30:10+06:00"),
+ assertEquals(EcoreUtil.createFromString(ReqIF10Package.eINSTANCE.getDateTime(), "2002-05-30T09:30:10+06:00"),
attributeValueDate.getTheValue());
}

Back to the top