Class RDToOnto_APITest
- java.lang.Object
-
- fi.tut.mei.resdescapi.rdtoontoapi.BaseRDToOntoTest
-
- fi.tut.mei.resdescapi.rdtoontoapi.RDToOnto_APITest
-
public class RDToOnto_APITest extends BaseRDToOntoTest
- Author:
- trinh
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
TEST_CATALOGUE_ID_01
protected static String
TEST_CATALOGUE_ID_02
protected static String
TEST_CATALOGUE_ID_03
protected static String
TEST_CONFIG_FILE
protected static String
TEST_FILE_TMP_OWL
protected static String
TEST_LOCATION_ONTOLOGY
protected static String
TEST_LOCATION_RESOURCE_DESCRIPTION
protected static String
TEST_LOCATION_RESOURCE_DESCRIPTION_01
protected static String
TEST_RESOURCE_ID_01
protected static String
TEST_RESOURCE_ID_02
protected static String
TEST_RESOURCE_ID_03
protected static String
TEST_RESOURCE_ID_04
protected static String
TEST_RESOURCE_ID_05
protected static String
TEST_RESOURCE_ID_06
protected static String
TEST_RESOURCE_ID_07
protected static String
TEST_RESOURCE_ID_08
protected static String
TEST_RESOURCE_ID_09
protected static String
TEST_URI_ONTOLOGY_CREATOR
-
Fields inherited from class fi.tut.mei.resdescapi.rdtoontoapi.BaseRDToOntoTest
SEPARATOR_PARAM, TEST_LOCATION, TEST_SEPARATOR, tmpFiles
-
-
Constructor Summary
Constructors Constructor Description RDToOnto_APITest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
runOnceBeforeClass()
void
setUp()
void
tearDown()
void
testInverse()
void
testStd()
void
transformRDFromCatalogue_RdIdAndCatalogue_OntoFile01()
test "transform resource description id rd.testRD.1234_2 in catalogue "localFilesystemTestResources"void
transformRDFromCatalogue_RdIdAndListCatalogues_OntoFile01()
test "transform resource description id rd.testRD.1234 in catalogues "localFilesystemTestResources", "localFilesystem1"void
transformRDFromCatalogue_RdIdsAndCatalogue_OntoFile01()
test "transform resource description id rd.testRD.1234 and rd.testRD.1234_2 in catalogue "localFilesystemTestResources"void
transformRDFromCatalogue_RdIdsAndListCatalogues_OntoFile01()
test "transform resource description id rd.testRD.1234 and rd.testRD.1234_2 in catalogues "localFilesystemTestResources" and "localFilesystem1"void
transformRdFromFolder_AllXmls_OntoFile()
test the method "transformRdFromFolder" input: three xml files in a folder output: an ontology filevoid
transformRdFromFolder_OneXml_OntoFile()
test the method "transformRdFromFolder" input: one xml file in a folder output: an ontology filevoid
transformRdToOnto_CatalogueAllResources_OntoFile()
transform all resources in a catalogue Input: - Catalogue 01: Id : localFilesystemTestResources includeAllResource : true Resource 01 Id : rd.Bosch.ReCaMLab.Gripper-Disc.1 with interface definitions : true Resource 02 Id : rd.MTG.RivetingTool.DZM190-101.1 with interface definitions : true Output: Ontology file not including any resourcevoid
transformRdToOnto_CatalogueNoResource_OntoFile()
transform a resource in a catalogue Input: - Catalogue 01: Id : localFilesystemTestResources includeAllResource : false Resource 01 Id : rd.Bosch.ReCaMLab.Gripper-Disc.1 with interface definitions : true Resource 02 Id : d.MTG.RivetingTool.DZM190-101.1 with interface definitions : true Output: Ontology file not including any resourcevoid
transformRdToOnto_CatalogueWithTwoResources_OntoFile()
transform a resource in a catalogue Input: - Catalogue 01: Id : localFilesystemTestResources includeAllResource : true Resource 01 Id : rd.CosbergSpA.GSOgiva.01.01 with interface definitions : true Resource 02 Id : rd.CosbergSpA.GSOgiva.02.01 with interface definitions : true - Resource : Resource 01 Id : rd.CosbergSpA.GSOgiva.01.01 with interface definitions : true Resource 02 Id : rd.CosbergSpA.GSOgiva.02.01 with interface definitions : true Output: Ontology filevoid
transformRdToOnto_Config_OntoFile()
void
transformRDToOnto_IdOfRD_OntologyFile01()
test "transform resource description id rd.testRD.1234"void
transformRDToOnto_NormalXML_OntologyFile01()
test "transform resource description RD_Test_Resource_v1_capaModel2.xml"void
transformRdToOnto_OneCatalogueAndOneResource_OntoFile()
Input: - Catalogue 01: Id : Catalogue02 includeAllResource : true Resource 01 Id : rd.CosbergSpA.GSOgiva.01.01 with interface definitions : true Resource 02 Id : rd.Bosch.ReCaMLab.Gripper-Disc.1 with interface definitions : true - Resource 02 Id : rd.Bosch.ReCaMLab.Gripper-Disc.1 with interface definitions : true Output: Ontology filevoid
transformRdToOnto_ResourcePool_OntoFile()
Input: ResourcePoolCT: Catalogue 01: Id : localFilesystemTestResources includeAllResource : true Resource 01 Id : rd.CosbergSpA.GSOgiva.01.01 with interface definitions : true Resource 02 Id : rd.MTG.RivetingTool.DZM190-101.1 with interface definitions : true Output: Ontology filevoid
transformRdToOnto_ResourceWithOrderedValues_OntoFile()
void
transformRdToOnto_TwoCatalogues_OntoFile()
Input: Catalogue 01: Id : localFilesystemTestResources includeAllResource : true Resource 01 Id : rd.CosbergSpA.GSOgiva.01.01 with interface definitions : true Catalogue 02: Id : Catalogue02 includeAllResource : true Resource 01 Id : rd.Bosch.ReCaMLab.Gripper-Disc.1 with interface definitions : true Output: Ontology file-
Methods inherited from class fi.tut.mei.resdescapi.rdtoontoapi.BaseRDToOntoTest
checkBlueprintObject, checkCapabilityParams_AllParams_Correct, setUpBeforeClass, tearDownAfterClass
-
-
-
-
Field Detail
-
TEST_FILE_TMP_OWL
protected static final String TEST_FILE_TMP_OWL
- See Also:
- Constant Field Values
-
TEST_LOCATION_ONTOLOGY
protected static final String TEST_LOCATION_ONTOLOGY
- See Also:
- Constant Field Values
-
TEST_LOCATION_RESOURCE_DESCRIPTION
protected static final String TEST_LOCATION_RESOURCE_DESCRIPTION
- See Also:
- Constant Field Values
-
TEST_URI_ONTOLOGY_CREATOR
protected static final String TEST_URI_ONTOLOGY_CREATOR
- See Also:
- Constant Field Values
-
TEST_LOCATION_RESOURCE_DESCRIPTION_01
protected static final String TEST_LOCATION_RESOURCE_DESCRIPTION_01
- See Also:
- Constant Field Values
-
TEST_CATALOGUE_ID_01
protected static final String TEST_CATALOGUE_ID_01
- See Also:
- Constant Field Values
-
TEST_CATALOGUE_ID_02
protected static final String TEST_CATALOGUE_ID_02
- See Also:
- Constant Field Values
-
TEST_CATALOGUE_ID_03
protected static final String TEST_CATALOGUE_ID_03
- See Also:
- Constant Field Values
-
TEST_RESOURCE_ID_01
protected static final String TEST_RESOURCE_ID_01
- See Also:
- Constant Field Values
-
TEST_RESOURCE_ID_02
protected static final String TEST_RESOURCE_ID_02
- See Also:
- Constant Field Values
-
TEST_RESOURCE_ID_03
protected static final String TEST_RESOURCE_ID_03
- See Also:
- Constant Field Values
-
TEST_RESOURCE_ID_04
protected static final String TEST_RESOURCE_ID_04
- See Also:
- Constant Field Values
-
TEST_RESOURCE_ID_05
protected static final String TEST_RESOURCE_ID_05
- See Also:
- Constant Field Values
-
TEST_RESOURCE_ID_06
protected static final String TEST_RESOURCE_ID_06
- See Also:
- Constant Field Values
-
TEST_RESOURCE_ID_07
protected static final String TEST_RESOURCE_ID_07
- See Also:
- Constant Field Values
-
TEST_RESOURCE_ID_08
protected static final String TEST_RESOURCE_ID_08
- See Also:
- Constant Field Values
-
TEST_RESOURCE_ID_09
protected static final String TEST_RESOURCE_ID_09
- See Also:
- Constant Field Values
-
TEST_CONFIG_FILE
protected static final String TEST_CONFIG_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
public void setUp() throws Exception
- Overrides:
setUp
in classBaseRDToOntoTest
- Throws:
Exception
-
tearDown
public void tearDown() throws Exception
- Overrides:
tearDown
in classBaseRDToOntoTest
- Throws:
Exception
-
transformRDToOnto_NormalXML_OntologyFile01
public void transformRDToOnto_NormalXML_OntologyFile01()
test "transform resource description RD_Test_Resource_v1_capaModel2.xml"
-
transformRDToOnto_IdOfRD_OntologyFile01
public void transformRDToOnto_IdOfRD_OntologyFile01()
test "transform resource description id rd.testRD.1234"
-
transformRDFromCatalogue_RdIdAndCatalogue_OntoFile01
public void transformRDFromCatalogue_RdIdAndCatalogue_OntoFile01()
test "transform resource description id rd.testRD.1234_2 in catalogue "localFilesystemTestResources"
-
transformRDFromCatalogue_RdIdAndListCatalogues_OntoFile01
public void transformRDFromCatalogue_RdIdAndListCatalogues_OntoFile01()
test "transform resource description id rd.testRD.1234 in catalogues "localFilesystemTestResources", "localFilesystem1"
-
transformRDFromCatalogue_RdIdsAndCatalogue_OntoFile01
public void transformRDFromCatalogue_RdIdsAndCatalogue_OntoFile01()
test "transform resource description id rd.testRD.1234 and rd.testRD.1234_2 in catalogue "localFilesystemTestResources"
-
transformRDFromCatalogue_RdIdsAndListCatalogues_OntoFile01
public void transformRDFromCatalogue_RdIdsAndListCatalogues_OntoFile01()
test "transform resource description id rd.testRD.1234 and rd.testRD.1234_2 in catalogues "localFilesystemTestResources" and "localFilesystem1"
-
transformRdFromFolder_OneXml_OntoFile
public void transformRdFromFolder_OneXml_OntoFile()
test the method "transformRdFromFolder" input: one xml file in a folder output: an ontology file
-
transformRdFromFolder_AllXmls_OntoFile
public void transformRdFromFolder_AllXmls_OntoFile()
test the method "transformRdFromFolder" input: three xml files in a folder output: an ontology file
-
transformRdToOnto_CatalogueAllResources_OntoFile
public void transformRdToOnto_CatalogueAllResources_OntoFile()
transform all resources in a catalogue Input: - Catalogue 01: Id : localFilesystemTestResources includeAllResource : true Resource 01 Id : rd.Bosch.ReCaMLab.Gripper-Disc.1 with interface definitions : true Resource 02 Id : rd.MTG.RivetingTool.DZM190-101.1 with interface definitions : true Output: Ontology file not including any resource
-
transformRdToOnto_CatalogueNoResource_OntoFile
public void transformRdToOnto_CatalogueNoResource_OntoFile()
transform a resource in a catalogue Input: - Catalogue 01: Id : localFilesystemTestResources includeAllResource : false Resource 01 Id : rd.Bosch.ReCaMLab.Gripper-Disc.1 with interface definitions : true Resource 02 Id : d.MTG.RivetingTool.DZM190-101.1 with interface definitions : true Output: Ontology file not including any resource
-
transformRdToOnto_CatalogueWithTwoResources_OntoFile
public void transformRdToOnto_CatalogueWithTwoResources_OntoFile()
transform a resource in a catalogue Input: - Catalogue 01: Id : localFilesystemTestResources includeAllResource : true Resource 01 Id : rd.CosbergSpA.GSOgiva.01.01 with interface definitions : true Resource 02 Id : rd.CosbergSpA.GSOgiva.02.01 with interface definitions : true - Resource : Resource 01 Id : rd.CosbergSpA.GSOgiva.01.01 with interface definitions : true Resource 02 Id : rd.CosbergSpA.GSOgiva.02.01 with interface definitions : true Output: Ontology file
-
transformRdToOnto_OneCatalogueAndOneResource_OntoFile
public void transformRdToOnto_OneCatalogueAndOneResource_OntoFile()
Input: - Catalogue 01: Id : Catalogue02 includeAllResource : true Resource 01 Id : rd.CosbergSpA.GSOgiva.01.01 with interface definitions : true Resource 02 Id : rd.Bosch.ReCaMLab.Gripper-Disc.1 with interface definitions : true - Resource 02 Id : rd.Bosch.ReCaMLab.Gripper-Disc.1 with interface definitions : true Output: Ontology file
-
transformRdToOnto_TwoCatalogues_OntoFile
public void transformRdToOnto_TwoCatalogues_OntoFile()
Input: Catalogue 01: Id : localFilesystemTestResources includeAllResource : true Resource 01 Id : rd.CosbergSpA.GSOgiva.01.01 with interface definitions : true Catalogue 02: Id : Catalogue02 includeAllResource : true Resource 01 Id : rd.Bosch.ReCaMLab.Gripper-Disc.1 with interface definitions : true Output: Ontology file
-
transformRdToOnto_ResourcePool_OntoFile
public void transformRdToOnto_ResourcePool_OntoFile()
Input: ResourcePoolCT: Catalogue 01: Id : localFilesystemTestResources includeAllResource : true Resource 01 Id : rd.CosbergSpA.GSOgiva.01.01 with interface definitions : true Resource 02 Id : rd.MTG.RivetingTool.DZM190-101.1 with interface definitions : true Output: Ontology file
-
transformRdToOnto_ResourceWithOrderedValues_OntoFile
public void transformRdToOnto_ResourceWithOrderedValues_OntoFile() throws Exception
- Throws:
Exception
-
-