update tranistions 2

This commit is contained in:
2026-06-28 09:56:05 +02:00
parent fc9d6f1f1c
commit 8d3fb0d90c
5 changed files with 122 additions and 12 deletions

View File

@@ -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");
}
}