update tranistions 2
This commit is contained in:
@@ -115,4 +115,16 @@ public class HeuristicBeanResolutionEngineTest {
|
||||
// There should be no domain mismatch because config/statemachine are generic.
|
||||
assertTrue(result, "Generic state machine config in generic config package should not trigger mismatch");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoMismatchOnStateMachineConfigSuffix() {
|
||||
CallChain chain = CallChain.builder()
|
||||
.methodChain(Arrays.asList("com.acme.shipping.service.OrderServiceImpl.place()"))
|
||||
.build();
|
||||
|
||||
String machineName = "com.acme.shipping.config.MyStateMachineConfig";
|
||||
|
||||
boolean result = engine.isRoutedToCorrectMachine(chain, machineName, null);
|
||||
assertTrue(result, "MyStateMachineConfig should not trigger mismatch because it contains StateMachineConfig");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user