Class TestContext
- java.lang.Object
-
- org.hansken.plugin.extraction.test.serialize.AbstractTestContext
-
- org.hansken.plugin.extraction.test.serialize.TestContext
-
- All Implemented Interfaces:
DataContext,org.hansken.plugin.extraction.runtime.grpc.client.api.ClientDataContext
public class TestContext extends AbstractTestContext
SimpleClientDataContextwhich has a data type and an accompanyingdata sequence, used for the input of a Flits run.
-
-
Constructor Summary
Constructors Constructor Description TestContext(Path dataFile)Create a new TestContext, which reads all required data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomAccessDatadata()StringdataType()-
Methods inherited from class org.hansken.plugin.extraction.test.serialize.AbstractTestContext
data
-
-
-
-
Constructor Detail
-
TestContext
public TestContext(Path dataFile) throws IOException
Create a new TestContext, which reads all required data.- Parameters:
dataFile- path to the data file- Throws:
IOException- when the path does not exist
-
-
Method Detail
-
dataType
public String dataType()
-
data
public RandomAccessData data()
-
-