Package jadex.base.test.util
Class STest
- java.lang.Object
-
- jadex.base.test.util.STest
-
public class STest extends java.lang.Object
Static config class for tests.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
testnetwork_name
static java.lang.String
testnetwork_pass
-
Constructor Summary
Constructors Constructor Description STest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IPlatformConfiguration
getDefaultTestConfig(java.lang.Class<?> test)
Get the test configuration using a unique platform name derived from the test class.static IPlatformConfiguration
getDefaultTestConfig(java.lang.String test)
Get the test configuration using a unique platform name derived from the test name.static IPlatformConfiguration
getLocalTestConfig(java.lang.Class<?> test)
Get a local (no communication) test configuration using a unique platform name derived from the test name.static IPlatformConfiguration
getLocalTestConfig(java.lang.String test)
Get local (no communication) test configuration using a unique platform name derived from the test name.static void
terminatePlatform(IExternalAccess platform)
-
-
-
Field Detail
-
testnetwork_name
public static final java.lang.String testnetwork_name
- See Also:
- Constant Field Values
-
testnetwork_pass
public static final java.lang.String testnetwork_pass
-
-
Method Detail
-
getLocalTestConfig
public static IPlatformConfiguration getLocalTestConfig(java.lang.String test)
Get local (no communication) test configuration using a unique platform name derived from the test name. Attention: The name is unique and the config can not be reused for multiple platforms! Uses simulation for speed.- Parameters:
test
- The test name.- Returns:
- The default configuration with a unique platform name.
-
getLocalTestConfig
public static IPlatformConfiguration getLocalTestConfig(java.lang.Class<?> test)
Get a local (no communication) test configuration using a unique platform name derived from the test name. Attention: The name is unique and the config can not be reused for multiple platforms!- Parameters:
test
- The test class.- Returns:
- The default configuration with a unique platform name.
-
getDefaultTestConfig
public static IPlatformConfiguration getDefaultTestConfig(java.lang.String test)
Get the test configuration using a unique platform name derived from the test name. Attention: The name is unique and the config can not be reused for multiple platforms!- Parameters:
test
- The test name.- Returns:
- The default configuration with a unique platform name.
-
getDefaultTestConfig
public static IPlatformConfiguration getDefaultTestConfig(java.lang.Class<?> test)
Get the test configuration using a unique platform name derived from the test class. Attention: The name is unique and the config can not be reused for multiple platforms!- Parameters:
test
- The test class.- Returns:
- The default configuration with a unique platform name.
-
terminatePlatform
public static void terminatePlatform(IExternalAccess platform)
-
-