Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAMEL-21080: more interface pre-work to simplifying migration of the test code #15677

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
* testing.
*/
public abstract class CamelTestSupport extends AbstractTestSupport
implements BeforeTestExecutionCallback, AfterTestExecutionCallback, ConfigurableTest, ConfigurableContext {
implements BeforeTestExecutionCallback, AfterTestExecutionCallback {
private static final Logger LOG = LoggerFactory.getLogger(CamelTestSupport.class);

@RegisterExtension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,9 @@

package org.apache.camel.test.junit5;

import org.apache.camel.CamelContext;

/**
* A common interface for tests that use the CamelContext.
*/
public interface CommonTestSupport {

/**
* Gets the {@link CamelContextConfiguration} for the test
*
* @return the camel context configuration
*/
CamelContextConfiguration camelContextConfiguration();
public interface CommonTestSupport extends ConfigurableTest, ConfigurableContext {

/**
* Gets the {@link TestExecutionConfiguration} test execution configuration instance for the test
*
* @return the configuration instance for the test
*/
TestExecutionConfiguration testConfiguration();
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ public interface ConfigurableContext {
* @param camelContextConfiguration
*/
void configureContext(CamelContextConfiguration camelContextConfiguration);

/**
* Gets the {@link CamelContextConfiguration} for the test
*
* @return the camel context configuration
*/
CamelContextConfiguration camelContextConfiguration();
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ public interface ConfigurableTest {
* @param testExecutionConfiguration
*/
void configureTest(TestExecutionConfiguration testExecutionConfiguration);

/**
* Gets the {@link TestExecutionConfiguration} test execution configuration instance for the test
*
* @return the configuration instance for the test
*/
TestExecutionConfiguration testConfiguration();
}