public class MqttTestSupport extends AbstractExternalResourceTestSupport<org.eclipse.paho.client.mqttv3.MqttClient>
logger, resource, XD_EXTERNAL_SERVERS_REQUIRED
Constructor and Description |
---|
MqttTestSupport() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupResource()
Perform cleanup of the
AbstractExternalResourceTestSupport.resource field, which is guaranteed to be non null. |
protected void |
obtainResource()
Try to obtain and validate a resource.
|
apply, getResource
protected void obtainResource() throws java.lang.Exception
AbstractExternalResourceTestSupport
AbstractExternalResourceTestSupport.resource
field with a valid
resource and return normally, or throw an exception.obtainResource
in class AbstractExternalResourceTestSupport<org.eclipse.paho.client.mqttv3.MqttClient>
java.lang.Exception
protected void cleanupResource() throws java.lang.Exception
AbstractExternalResourceTestSupport
AbstractExternalResourceTestSupport.resource
field, which is guaranteed to be non null.cleanupResource
in class AbstractExternalResourceTestSupport<org.eclipse.paho.client.mqttv3.MqttClient>
java.lang.Exception
- any exception thrown by this method will be logged and swallowed