Package nl.basjes.modbus.schema.test
Class TestScenario
-
- All Implemented Interfaces:
public final class TestScenario
-
-
Field Summary
Fields Modifier and Type Field Description private final List<RegisterBlock>registerBlocksprivate final List<ExpectedBlock>expectedBlocksprivate final Stringnameprivate final Stringdescription
-
Constructor Summary
Constructors Constructor Description TestScenario(String name, String description)
-
Method Summary
Modifier and Type Method Description final List<RegisterBlock>getRegisterBlocks()final List<ExpectedBlock>getExpectedBlocks()final StringgetName()The name of the test. final StringgetDescription()Human-readable description of the test. final MockedModbusDevicemodbusDevice()final UnitaddRegisterBlock(RegisterBlock registerBlock)final UnitaddExpectedBlock(ExpectedBlock block)StringtoString()-
-
Method Detail
-
getRegisterBlocks
final List<RegisterBlock> getRegisterBlocks()
-
getExpectedBlocks
final List<ExpectedBlock> getExpectedBlocks()
-
getName
final String getName()
The name of the test. Must be usable as an identifier in 'all' common programming languages. So "CamelCase" (without spaces) is a good choice.
-
getDescription
final String getDescription()
Human-readable description of the test.
-
modbusDevice
final MockedModbusDevice modbusDevice()
-
addRegisterBlock
final Unit addRegisterBlock(RegisterBlock registerBlock)
-
addExpectedBlock
final Unit addExpectedBlock(ExpectedBlock block)
-
-
-
-