Skip to content
Open
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 @@ -272,7 +272,7 @@ private CitrusSettings() {

public static final String CUSTOM_VALIDATOR_STRATEGY_PROPERTY = "citrus.custom.validator.strategy";
public static final String CUSTOM_VALIDATOR_STRATEGY_ENV = "CITRUS_CUSTOM_VALIDATOR_STRATEGY";
public static final CustomValidatorStrategy CUSTOM_VALIDATOR_STRATEGY_DEFAULT = CustomValidatorStrategy.EXCLUSIVE;
public static final CustomValidatorStrategy CUSTOM_VALIDATOR_STRATEGY_DEFAULT = CustomValidatorStrategy.COMBINED;

/**
* Flag to enable/disable input stream caching
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ public void isStackTraceOutputEnabled_shouldReturnPropertyValue_overEnvVarValue(
}

@Test
public void getCustomValidatorStrategy_shouldReturnExclusiveByDefault() {
public void getCustomValidatorStrategy_shouldReturnCombinedByDefault() {
systemProperties.remove(CUSTOM_VALIDATOR_STRATEGY_PROPERTY);
environmentVariables.remove(CUSTOM_VALIDATOR_STRATEGY_ENV);

assertThat(CitrusSettings.getCustomValidatorStrategy())
.isEqualTo(EXCLUSIVE);
.isEqualTo(COMBINED);
}

@DataProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,8 @@ public void testReceiveMessage_shouldInvokeValidationContexts_whenNoCustomValida
"""
)
public void testReceiveMessage_shouldIgnoreValidationContexts_whenCustomValidatorIsPresent_andValidationStrategyIsExclusive() {
environmentVariables.set(CUSTOM_VALIDATOR_STRATEGY_ENV, "EXCLUSIVE");

var testActor = new TestActor();
testActor.setName("TESTACTOR");

Expand Down
Loading