public class AasConnectorTest extends test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest<Object>
AasConnector with polling and no security.| Modifier and Type | Field and Description |
|---|---|
private static de.iip_ecosphere.platform.support.ServerAddress |
AAS_SERVER |
private static String |
AAS_URN |
private static de.iip_ecosphere.platform.support.Server |
ccServer |
private static de.iip_ecosphere.platform.support.Server |
httpServer |
private static org.slf4j.Logger |
LOGGER |
private static de.iip_ecosphere.platform.support.iip_aas.ActiveAasBase.NotificationMode |
oldNotificationMode |
private static de.iip_ecosphere.platform.support.iip_aas.AasPartRegistry.AasSetup |
oldSetup |
private static de.iip_ecosphere.platform.support.Server |
platformAasServer |
private static de.iip_ecosphere.platform.support.Endpoint |
REGISTRY |
private static de.iip_ecosphere.platform.support.ServerAddress |
VAB_SERVER |
| Constructor and Description |
|---|
AasConnectorTest()
Creates an instance of this test.
|
| Modifier and Type | Method and Description |
|---|---|
void |
additionalFromActions(de.iip_ecosphere.platform.connectors.model.ModelAccess access,
test.de.iip_ecosphere.platform.connectors.MachineCommand data) |
void |
afterActions(de.iip_ecosphere.platform.connectors.Connector<Object,Object,test.de.iip_ecosphere.platform.connectors.MachineData,test.de.iip_ecosphere.platform.connectors.MachineCommand> connector) |
void |
assertAdditionalProperties(test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest.Step step,
test.de.iip_ecosphere.platform.connectors.MachineData received) |
static de.iip_ecosphere.platform.support.aas.Aas |
createAAS(test.de.iip_ecosphere.platform.support.aas.TestMachine machine)
This method creates and starts the Asset Administration Shell.
|
protected de.iip_ecosphere.platform.connectors.Connector<Object,Object,test.de.iip_ecosphere.platform.connectors.MachineData,test.de.iip_ecosphere.platform.connectors.MachineCommand> |
createConnector(de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<Object,Object,test.de.iip_ecosphere.platform.connectors.MachineData,test.de.iip_ecosphere.platform.connectors.MachineCommand> adapter) |
protected Class<? extends de.iip_ecosphere.platform.connectors.ConnectorDescriptor> |
getConnectorDescriptor() |
protected de.iip_ecosphere.platform.connectors.ConnectorParameter |
getConnectorParameter() |
String |
getQNameOperationStartMachine() |
String |
getQNameOperationStopMachine() |
String |
getQNameVarLotSize() |
String |
getQNameVarPowerConsumption() |
String |
getTopLevelModelPartName() |
String |
getVendor(de.iip_ecosphere.platform.connectors.model.ModelAccess access) |
static void |
init()
Sets the test up by starting an embedded OPC UA server.
|
void |
initializeModelAccess(de.iip_ecosphere.platform.connectors.model.ModelAccess access,
boolean withNotifications) |
static void |
shutdown()
Shuts down the test server.
|
void |
testWithPolling()
Tests the connector in polling mode.
|
private static final org.slf4j.Logger LOGGER
private static final String AAS_URN
private static final de.iip_ecosphere.platform.support.ServerAddress AAS_SERVER
private static final de.iip_ecosphere.platform.support.ServerAddress VAB_SERVER
private static final de.iip_ecosphere.platform.support.Endpoint REGISTRY
private static de.iip_ecosphere.platform.support.Server platformAasServer
private static de.iip_ecosphere.platform.support.Server httpServer
private static de.iip_ecosphere.platform.support.Server ccServer
private static de.iip_ecosphere.platform.support.iip_aas.ActiveAasBase.NotificationMode oldNotificationMode
private static de.iip_ecosphere.platform.support.iip_aas.AasPartRegistry.AasSetup oldSetup
public static void init()
throws SocketException,
UnknownHostException
SocketException - if the port to be used for the AAS is occupiedUnknownHostException - shall not occurpublic static void shutdown()
public static de.iip_ecosphere.platform.support.aas.Aas createAAS(test.de.iip_ecosphere.platform.support.aas.TestMachine machine)
throws SocketException,
UnknownHostException
machine - the test machine instanceSocketException - if the port to be used for the AAS is occupiedUnknownHostException - shall not occurpublic void testWithPolling()
throws IOException
IOException - in case that creating the connector failsprotected Class<? extends de.iip_ecosphere.platform.connectors.ConnectorDescriptor> getConnectorDescriptor()
getConnectorDescriptor in class test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest<Object>protected de.iip_ecosphere.platform.connectors.Connector<Object,Object,test.de.iip_ecosphere.platform.connectors.MachineData,test.de.iip_ecosphere.platform.connectors.MachineCommand> createConnector(de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<Object,Object,test.de.iip_ecosphere.platform.connectors.MachineData,test.de.iip_ecosphere.platform.connectors.MachineCommand> adapter)
createConnector in class test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest<Object>protected de.iip_ecosphere.platform.connectors.ConnectorParameter getConnectorParameter()
getConnectorParameter in class test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest<Object>public String getQNameOperationStartMachine()
public String getQNameOperationStopMachine()
public String getQNameVarLotSize()
public String getTopLevelModelPartName()
public void additionalFromActions(de.iip_ecosphere.platform.connectors.model.ModelAccess access,
test.de.iip_ecosphere.platform.connectors.MachineCommand data)
throws IOException
IOExceptionpublic void initializeModelAccess(de.iip_ecosphere.platform.connectors.model.ModelAccess access,
boolean withNotifications)
throws IOException
IOExceptionpublic String getVendor(de.iip_ecosphere.platform.connectors.model.ModelAccess access) throws IOException
IOExceptionpublic String getQNameVarPowerConsumption()
public void assertAdditionalProperties(test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest.Step step,
test.de.iip_ecosphere.platform.connectors.MachineData received)
assertAdditionalProperties in class test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest<Object>public void afterActions(de.iip_ecosphere.platform.connectors.Connector<Object,Object,test.de.iip_ecosphere.platform.connectors.MachineData,test.de.iip_ecosphere.platform.connectors.MachineCommand> connector)
afterActions in class test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest<Object>Copyright © 2021. All rights reserved.