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 StringTEST_CATALOGUE_ID_01protected static StringTEST_CATALOGUE_ID_02protected static StringTEST_CATALOGUE_ID_03protected static StringTEST_CONFIG_FILEprotected static StringTEST_FILE_TMP_OWLprotected static StringTEST_LOCATION_ONTOLOGYprotected static StringTEST_LOCATION_RESOURCE_DESCRIPTIONprotected static StringTEST_LOCATION_RESOURCE_DESCRIPTION_01protected static StringTEST_RESOURCE_ID_01protected static StringTEST_RESOURCE_ID_02protected static StringTEST_RESOURCE_ID_03protected static StringTEST_RESOURCE_ID_04protected static StringTEST_RESOURCE_ID_05protected static StringTEST_RESOURCE_ID_06protected static StringTEST_RESOURCE_ID_07protected static StringTEST_RESOURCE_ID_08protected static StringTEST_RESOURCE_ID_09protected static StringTEST_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 voidrunOnceBeforeClass()voidsetUp()voidtearDown()voidtestInverse()voidtestStd()voidtransformRDFromCatalogue_RdIdAndCatalogue_OntoFile01()test "transform resource description id rd.testRD.1234_2 in catalogue "localFilesystemTestResources"voidtransformRDFromCatalogue_RdIdAndListCatalogues_OntoFile01()test "transform resource description id rd.testRD.1234 in catalogues "localFilesystemTestResources", "localFilesystem1"voidtransformRDFromCatalogue_RdIdsAndCatalogue_OntoFile01()test "transform resource description id rd.testRD.1234 and rd.testRD.1234_2 in catalogue "localFilesystemTestResources"voidtransformRDFromCatalogue_RdIdsAndListCatalogues_OntoFile01()test "transform resource description id rd.testRD.1234 and rd.testRD.1234_2 in catalogues "localFilesystemTestResources" and "localFilesystem1"voidtransformRdFromFolder_AllXmls_OntoFile()test the method "transformRdFromFolder" input: three xml files in a folder output: an ontology filevoidtransformRdFromFolder_OneXml_OntoFile()test the method "transformRdFromFolder" input: one xml file in a folder output: an ontology filevoidtransformRdToOnto_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 resourcevoidtransformRdToOnto_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 resourcevoidtransformRdToOnto_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 filevoidtransformRdToOnto_Config_OntoFile()voidtransformRDToOnto_IdOfRD_OntologyFile01()test "transform resource description id rd.testRD.1234"voidtransformRDToOnto_NormalXML_OntologyFile01()test "transform resource description RD_Test_Resource_v1_capaModel2.xml"voidtransformRdToOnto_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 filevoidtransformRdToOnto_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 filevoidtransformRdToOnto_ResourceWithOrderedValues_OntoFile()voidtransformRdToOnto_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:
setUpin classBaseRDToOntoTest- Throws:
Exception
-
tearDown
public void tearDown() throws Exception- Overrides:
tearDownin 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
-
-