diff --git a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/CDAClassesMapIT.java b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/CDAClassesMapIT.java similarity index 99% rename from hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/CDAClassesMapIT.java rename to hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/CDAClassesMapIT.java index 76b6750448806e875adcad8e24b3d1070e33efde..e09a203701c2d79cd4f890262e75f122db7524ad 100644 --- a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/CDAClassesMapIT.java +++ b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/CDAClassesMapIT.java @@ -1,4 +1,4 @@ -package net.ihe.gazelle.goc.mode.test; +package net.ihe.gazelle.goc.model.test; import org.eclipse.emf.common.util.EList; import org.eclipse.uml2.uml.PackageableElement; diff --git a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/ElementImportUtilIT.java b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/ElementImportUtilIT.java similarity index 98% rename from hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/ElementImportUtilIT.java rename to hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/ElementImportUtilIT.java index 12aa64f4c68b412013280211e6269d8efa64abca..2e2644efc287606b725d720ff1b80f75d0eed13c 100644 --- a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/ElementImportUtilIT.java +++ b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/ElementImportUtilIT.java @@ -1,4 +1,4 @@ -package net.ihe.gazelle.goc.mode.test; +package net.ihe.gazelle.goc.model.test; import static org.junit.Assert.assertTrue; import net.ihe.gazelle.goc.uml.Model; diff --git a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/ModelDescriberInitializerIT.java b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/ModelDescriberInitializerIT.java similarity index 86% rename from hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/ModelDescriberInitializerIT.java rename to hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/ModelDescriberInitializerIT.java index ac1a2eaabe3f7756945aceb370180378de32a7c2..2aa081b47f91f8ed5629c4f78a4f61f24dcbf12d 100644 --- a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/ModelDescriberInitializerIT.java +++ b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/ModelDescriberInitializerIT.java @@ -1,9 +1,10 @@ -package net.ihe.gazelle.goc.mode.test; +package net.ihe.gazelle.goc.model.test; import net.ihe.gazelle.goc.uml.utils.ModelDescriberInitializer; import net.ihe.gazelle.goc.umlmodel.model.ModelDescriber; import net.ihe.gazelle.goc.umlmodel.util.ModelDescriberUtil; +import org.junit.Ignore; import org.junit.Test; import java.util.List; @@ -20,7 +21,7 @@ public class ModelDescriberInitializerIT { ModelDescriber md = ModelDescriberUtil.getModelDescriberByIdentifier("common", aa); assertEquals("common", md.getIdentifier()); - assertTrue(md.getPath().contains("/common-models/src/main/resources/models/common.uml")); + assertTrue(md.getPath().contains("/common-models/models/common.uml")); assertEquals("../../common-models/models/common.uml", md.getRelativeXMIPath()); assertEquals("CommonClasses", md.getModelUML().getName()); assertEquals(0, md.getListTemplateIdentifierUMLId().size()); @@ -28,13 +29,16 @@ public class ModelDescriberInitializerIT { md = ModelDescriberUtil.getModelDescriberByIdentifier("datatypes", aa); assertEquals("datatypes", md.getIdentifier()); - assertTrue(md.getPath().contains("/datatypes-model/src/main/resources/models/datatypes.uml")); + assertTrue(md.getPath().contains("/datatypes-model/models/datatypes.uml")); assertEquals("../../datatypes-model/models/datatypes.uml", md.getRelativeXMIPath()); assertEquals("datatypes", md.getModelUML().getName()); assertEquals(1, md.getListTemplateIdentifierUMLId().size()); assertNotNull(md.getMapListUMLElementsToUMLId().get("AD")); } - + + + //This test ignore because it's too specefic to cdaepsos + @Ignore @Test public void testInitializeListModelDescriberString2() { String pathResources = "src/test/resources/testModels2.xml"; diff --git a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/ModelDescriberUtilIT.java b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/ModelDescriberUtilIT.java similarity index 93% rename from hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/ModelDescriberUtilIT.java rename to hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/ModelDescriberUtilIT.java index a3a7e9742725262bf13367b2abecef24ea03c2ea..83f3fdf4918fbb31adb940b51e3805e69b77519f 100644 --- a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/ModelDescriberUtilIT.java +++ b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/ModelDescriberUtilIT.java @@ -1,4 +1,4 @@ -package net.ihe.gazelle.goc.mode.test; +package net.ihe.gazelle.goc.model.test; import static org.junit.Assert.*; diff --git a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/PackagedElementUtilIT.java b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/PackagedElementUtilIT.java similarity index 98% rename from hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/PackagedElementUtilIT.java rename to hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/PackagedElementUtilIT.java index 3845c47d2b75bae5c0290654e291e19870c1ddfc..09646bb7d604c38a3e54491ee73675c7c654bd52 100644 --- a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/PackagedElementUtilIT.java +++ b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/PackagedElementUtilIT.java @@ -1,4 +1,4 @@ -package net.ihe.gazelle.goc.mode.test; +package net.ihe.gazelle.goc.model.test; import static org.junit.Assert.assertTrue; diff --git a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/UMLLoaderIT.java b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/UMLLoaderIT.java similarity index 99% rename from hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/UMLLoaderIT.java rename to hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/UMLLoaderIT.java index 4d17c77cfac4f8a68786b6294321292bf011668f..90b726a067201286f84fbbd02c80042e652c257a 100644 --- a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/UMLLoaderIT.java +++ b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/UMLLoaderIT.java @@ -1,4 +1,4 @@ -package net.ihe.gazelle.goc.mode.test; +package net.ihe.gazelle.goc.model.test; import static org.junit.Assert.*; diff --git a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/UmlServicesIT.java b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/UmlServicesIT.java similarity index 86% rename from hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/UmlServicesIT.java rename to hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/UmlServicesIT.java index 640ae82b3649e159f6610abbd00eed6ee1c4346b..af3ce8d99e7211415dd7b198106009ca3d65d0d3 100644 --- a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/UmlServicesIT.java +++ b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/UmlServicesIT.java @@ -1,4 +1,4 @@ -package net.ihe.gazelle.goc.mode.test; +package net.ihe.gazelle.goc.model.test; import static org.junit.Assert.assertTrue; diff --git a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/XMIUtilIT.java b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/XMIUtilIT.java similarity index 95% rename from hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/XMIUtilIT.java rename to hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/XMIUtilIT.java index a96682123072556671d91db7a7c34475bb49fc06..65b7a74cbe7b437db18ceb4dceb35ccf7b12f68d 100644 --- a/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/mode/test/XMIUtilIT.java +++ b/hl7templates/gocmodel-jar/src/it/java/net/ihe/gazelle/goc/model/test/XMIUtilIT.java @@ -1,4 +1,4 @@ -package net.ihe.gazelle.goc.mode.test; +package net.ihe.gazelle.goc.model.test; import static org.junit.Assert.assertTrue; diff --git a/hl7templates/gocmodel-jar/src/main/java/net/ihe/gazelle/goc/scripts/CreateResourcesForTest.java b/hl7templates/gocmodel-jar/src/main/java/net/ihe/gazelle/goc/scripts/CreateResourcesForTest.java index e683459a208c9e1732a47eb8266fae195ec04c36..3705ee5c5f716c3a67ea594bd0141bd304f8b41e 100644 --- a/hl7templates/gocmodel-jar/src/main/java/net/ihe/gazelle/goc/scripts/CreateResourcesForTest.java +++ b/hl7templates/gocmodel-jar/src/main/java/net/ihe/gazelle/goc/scripts/CreateResourcesForTest.java @@ -22,8 +22,6 @@ public class CreateResourcesForTest { Properties properties = new Properties(); InputStream inputStream = CreateResourcesForTest.class.getResourceAsStream("/env.properties"); - InputStream tt = CreateResourcesForTest.class.getResourceAsStream("/log4j.properties"); - System.out.println(tt); properties.load(inputStream); String workspacePath = properties.getProperty("TEMP_TESTS_WORKSPACE"); @@ -81,6 +79,7 @@ public class CreateResourcesForTest { try { FileUtils.copyDirectory(srcDir, destDir); + System.out.println("Resources created successfully"); } catch (IOException e) { e.printStackTrace(); } diff --git a/hl7templates/gocmodel-jar/src/test/resources/testModels1.xml b/hl7templates/gocmodel-jar/src/test/resources/testModels1.xml index dda195f78374b84dfa5596905870263ab4d868d1..1660da6dbf6067b237058db18ae72936cfeb79eb 100644 --- a/hl7templates/gocmodel-jar/src/test/resources/testModels1.xml +++ b/hl7templates/gocmodel-jar/src/test/resources/testModels1.xml @@ -3,28 +3,28 @@ <UMLModelsDescription> <modelUMLDesc> <identifier>datatypes</identifier> - <path>/home/aai@kereval.com/IdeaProjects/GOCFomGit/models/datatypes-model/src/main/resources/models/datatypes.uml</path> + <path>/tmp/GOCResources/datatypes-model/models/datatypes.uml</path> <relativeXMIPath>../../datatypes-model/models/datatypes.uml</relativeXMIPath> <templateIdentifierUMLID>_CuEO9q70EeGxJei_o6JmIA</templateIdentifierUMLID> </modelUMLDesc> <modelUMLDesc> <identifier>cda</identifier> - <path>/home/aai@kereval.com/IdeaProjects/GOCFomGit/models/cda-model/src/main/resources/models/cda.uml</path> + <path>/tmp/GOCResources/cda-model/models/cda.uml</path> <relativeXMIPath>../../cda-model/models/cda.uml</relativeXMIPath> </modelUMLDesc> <modelUMLDesc> <identifier>nblock</identifier> - <path>/home/aai@kereval.com/IdeaProjects/GOCFomGit/models/nblock-model/src/main/resources/models/nblock.uml</path> + <path>/tmp/GOCResources/nblock-model/models/nblock.uml</path> <relativeXMIPath>../../nblock-model/models/nblock.uml</relativeXMIPath> </modelUMLDesc> <modelUMLDesc> <identifier>voc</identifier> - <path>/home/aai@kereval.com/IdeaProjects/GOCFomGit/models/voc-model/src/main/resources/models/voc.uml</path> + <path>/tmp/GOCResources/voc-model/models/voc.uml</path> <relativeXMIPath>../../voc-model/models/voc.uml</relativeXMIPath> </modelUMLDesc> <modelUMLDesc> <identifier>common</identifier> - <path>/home/aai@kereval.com/IdeaProjects/GOCFomGit/models/common-models/src/main/resources/models/common.uml</path> + <path>/tmp/GOCResources/common-models/models/common.uml</path> <relativeXMIPath>../../common-models/models/common.uml</relativeXMIPath> </modelUMLDesc> </UMLModelsDescription> diff --git a/hl7templates/gocmodel-jar/src/test/resources/testModels2.xml b/hl7templates/gocmodel-jar/src/test/resources/testModels2.xml index bca80dccce1ce56709455a8ff31b153abf5892bc..5876864a30a5e6a95367167e3e8d71a524244983 100644 --- a/hl7templates/gocmodel-jar/src/test/resources/testModels2.xml +++ b/hl7templates/gocmodel-jar/src/test/resources/testModels2.xml @@ -3,7 +3,7 @@ <UMLModelsDescription> <modelUMLDesc> <identifier>medication</identifier> - <path>/home/aai@kereval.com/IdeaProjects/GOCFomGit/models/cdaepsos-model/src/main/resources/modelad2/medication.uml</path> + <path>/tmp/GOCResources/cdaepsos-model/modelad2/medication.uml</path> <relativeXMIPath>../../cdaepsos-model/models/medication.uml</relativeXMIPath> </modelUMLDesc> </UMLModelsDescription>