Class BaseRDToOntoTest
- java.lang.Object
-
- fi.tut.mei.resdescapi.rdtoontoapi.BaseRDToOntoTest
-
- Direct Known Subclasses:
RDToOnto_APITest
public class BaseRDToOntoTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
SEPARATOR_PARAM
protected static String
TEST_LOCATION
protected static String
TEST_SEPARATOR
protected List<String>
tmpFiles
-
Constructor Summary
Constructors Constructor Description BaseRDToOntoTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkBlueprintObject(fi.tut.mei.capabilityQueryLib.model.Blueprint blueprint, String expectedType, Map<String,Map<String,String>> expectedParamVals, Map<String,Map<String,List<String>>> expectedParamObjVals, Map<String,String> expectedBasicResourceInfos)
Check the content of blueprintprotected void
checkCapabilityParams_AllParams_Correct(String name, List<fi.tut.mei.capabilityQueryLib.model.ResourceCapability> resourceCapabilities, Map<String,Map<String,String>> expectedParamVals, Map<String,Map<String,List<String>>> expectedParamObjVals)
test content of capabilities parametersvoid
setUp()
static void
setUpBeforeClass()
void
tearDown()
static void
tearDownAfterClass()
-
-
-
Field Detail
-
TEST_LOCATION
protected static final String TEST_LOCATION
- See Also:
- Constant Field Values
-
TEST_SEPARATOR
protected static final String TEST_SEPARATOR
- See Also:
- Constant Field Values
-
SEPARATOR_PARAM
protected final String SEPARATOR_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkBlueprintObject
protected void checkBlueprintObject(fi.tut.mei.capabilityQueryLib.model.Blueprint blueprint, String expectedType, Map<String,Map<String,String>> expectedParamVals, Map<String,Map<String,List<String>>> expectedParamObjVals, Map<String,String> expectedBasicResourceInfos)
Check the content of blueprint- Parameters:
blueprint
- blueprint objectexpectedType
- expected type of blueprintexpectedParamVals
- expected parameter valuesexpectedParamObjVals
- expected parameter object valuesexpectedBasicResourceInfos
- expected basic resource information
-
checkCapabilityParams_AllParams_Correct
protected void checkCapabilityParams_AllParams_Correct(String name, List<fi.tut.mei.capabilityQueryLib.model.ResourceCapability> resourceCapabilities, Map<String,Map<String,String>> expectedParamVals, Map<String,Map<String,List<String>>> expectedParamObjVals)
test content of capabilities parameters- Parameters:
name
- name of blueprint or individual device or capability combinationresourceCapabilities
- list of resource capabilitiesexpectedParamVals
- expected parameter valuesexpectedParamObjVals
- expected parameter object values
-
-