public final class Citrus extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
afterSuite(String suiteName,
String... testGroups)
Performs after suite test actions.
|
void |
beforeSuite(String suiteName,
String... testGroups)
Performs before suite test actions.
|
TestContext |
createTestContext()
Creates a new test context.
|
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the basic Citrus Spring bean application context.
|
<T extends Endpoint> |
getEndpoint(Class<T> requiredType)
Gets the endpoint from Spring application context with given type.
|
Endpoint |
getEndpoint(String name)
Gets the endpoint from Spring application context.
|
<T extends Endpoint> |
getEndpoint(String name,
Class<T> requiredType)
Gets the endpoint from Spring application context with given type.
|
static String |
getVersion()
Gets the Citrus version from classpath resource properties.
|
static Citrus |
newInstance()
Initializing method loads Spring application context and reads bean definitions
such as test listeners and test context factory.
|
static Citrus |
newInstance(org.springframework.context.ApplicationContext applicationContext)
Create new Citrus instance with given Spring bean application context.
|
static Citrus |
newInstance(Class<? extends CitrusBaseConfig> configClass)
Initializing method with Spring application context Java configuration class
that gets loaded as application context.
|
void |
run(TestAction action)
Runs a test action which can also be a whole test case.
|
void |
run(TestAction action,
TestContext testContext)
Runs test action with given test context.
|
public static Citrus newInstance()
public static Citrus newInstance(Class<? extends CitrusBaseConfig> configClass)
public static Citrus newInstance(org.springframework.context.ApplicationContext applicationContext)
applicationContext - public void beforeSuite(String suiteName, String... testGroups)
suiteName - testGroups - public void afterSuite(String suiteName, String... testGroups)
suiteName - testGroups - public Endpoint getEndpoint(String name)
name - public <T extends Endpoint> T getEndpoint(Class<T> requiredType)
requiredType - public <T extends Endpoint> T getEndpoint(String name, Class<T> requiredType)
name - requiredType - public void run(TestAction action)
public void run(TestAction action, TestContext testContext)
action - testContext - public TestContext createTestContext()
public org.springframework.context.ApplicationContext getApplicationContext()
public static String getVersion()
Copyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.