diff --git a/mode/core/src/test/java/org/apache/shardingsphere/mode/processor/AlgorithmChangedProcessorTest.java b/mode/core/src/test/java/org/apache/shardingsphere/mode/processor/AlgorithmChangedProcessorTest.java index b1ee13754799b..cbbe1fe245e80 100644 --- a/mode/core/src/test/java/org/apache/shardingsphere/mode/processor/AlgorithmChangedProcessorTest.java +++ b/mode/core/src/test/java/org/apache/shardingsphere/mode/processor/AlgorithmChangedProcessorTest.java @@ -48,7 +48,8 @@ class AlgorithmChangedProcessorTest { @Test void assertSwapRuleItemConfiguration() { - AlgorithmConfiguration actual = processor.swapRuleItemConfiguration(new AlterNamedRuleItemEvent("", "foo", "", "", ""), createYAMLContent()); + AlterNamedRuleItemEvent event = new AlterNamedRuleItemEvent("", "foo", "", "", ""); + AlgorithmConfiguration actual = processor.swapRuleItemConfiguration(event, createYAMLContent()); assertThat(actual, deepEqual(new AlgorithmConfiguration("foo_algo", new Properties()))); }