Class DataMapperTest
java.lang.Object
test.de.iip_ecosphere.platform.services.environment.DataMapperTest
Tests
DataMapper.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGenerated data unit, representing alternative intputs to a service.static classSome input data for a service.static classSome input data for a service. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidAsserts an instance ofDataMapperTest.MyInput1againstcreateTestInputStream().private static voidAsserts an instance ofDataMapperTest.MyInput2againstcreateTestInputStream().private static InputStreamCreates a test input stream with 2 elements.voidTestsDataMapper.createBaseDataUnitClass(Class).voidTestsDataMapper.mapJsonData(InputStream, Class, Consumer)withDataMapper.MappingConsumer.voidTestsDataMapper.mapJsonData(InputStream, Class, Consumer).
-
Field Details
-
count
private static int count
-
-
Constructor Details
-
DataMapperTest
public DataMapperTest()
-
-
Method Details
-
createTestInputStream
Creates a test input stream with 2 elements.- Returns:
- the input stream
-
assertMyInput1
Asserts an instance ofDataMapperTest.MyInput1againstcreateTestInputStream().- Parameters:
input- the input instance
-
assertMyInput2
Asserts an instance ofDataMapperTest.MyInput2againstcreateTestInputStream().- Parameters:
input- the input instance
-
testJsonDataMapper
TestsDataMapper.mapJsonData(InputStream, Class, Consumer).- Throws:
IOException- shall not occur
-
testGenericJsonDataMapper
TestsDataMapper.mapJsonData(InputStream, Class, Consumer)withDataMapper.MappingConsumer.- Throws:
IOException- shall not occur
-
testCreateBaseDataUnitClass
public void testCreateBaseDataUnitClass()TestsDataMapper.createBaseDataUnitClass(Class).
-