Skip to content

Commit

Permalink
Making several configuration mehtods for TestSupport protected.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriOndrusek authored and orpiske committed Jun 7, 2024
1 parent 89dc81b commit e66469d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* Configures a context for test execution
*/
public final class CamelContextConfiguration {
public class CamelContextConfiguration {
@FunctionalInterface
public interface CamelContextSupplier {
CamelContext createCamelContext() throws Exception;
Expand Down Expand Up @@ -228,7 +228,7 @@ public CamelContextSupplier camelContextSupplier() {
*
* @param camelContextSupplier A supplier for the Camel context
*/
CamelContextConfiguration withCamelContextSupplier(
protected CamelContextConfiguration withCamelContextSupplier(
CamelContextSupplier camelContextSupplier) {
this.camelContextSupplier = camelContextSupplier;
return this;
Expand Down Expand Up @@ -285,7 +285,7 @@ public RoutesSupplier routesSupplier() {
/**
* A supplier that classes can use to create a {@link RouteBuilder} to define the routes for testing
*/
CamelContextConfiguration withRoutesSupplier(
protected CamelContextConfiguration withRoutesSupplier(
RoutesSupplier routesSupplier) {
this.routesSupplier = routesSupplier;
return this;
Expand Down Expand Up @@ -314,7 +314,7 @@ public PostProcessor postProcessor() {
*
* @param postProcessor the post-test processor to use
*/
CamelContextConfiguration withPostProcessor(
protected CamelContextConfiguration withPostProcessor(
PostProcessor postProcessor) {
this.postProcessor = postProcessor;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public boolean isUseAdviceWith() {
* @return <tt>true</tt> if you use advice with in your unit tests.
*/
@Deprecated(since = "4.7.0")
TestExecutionConfiguration withUseAdviceWith(boolean useAdviceWith) {
protected TestExecutionConfiguration withUseAdviceWith(boolean useAdviceWith) {
this.useAdviceWith = useAdviceWith;
return this;
}
Expand All @@ -129,7 +129,7 @@ public boolean isCreateCamelContextPerClass() {
* @return <tt>true</tt> per class, <tt>false</tt> per test.
*/
@Deprecated(since = "4.7.0")
TestExecutionConfiguration withCreateCamelContextPerClass(boolean createCamelContextPerClass) {
protected TestExecutionConfiguration withCreateCamelContextPerClass(boolean createCamelContextPerClass) {
this.createCamelContextPerClass = createCamelContextPerClass;
return this;
}
Expand Down

0 comments on commit e66469d

Please sign in to comment.