aglinxinyuan opened a new issue, #4737: URL: https://github.com/apache/texera/issues/4737
### Task Summary `StateManager` (`amber/src/main/scala/org/apache/texera/amber/engine/common/statetransition/StateManager.scala`) is a generic state machine used throughout the engine but currently has no dedicated unit tests. Add `StateManagerSpec` covering its full public surface: - `getCurrentState` reports the initial state - `transitTo` advances on a valid edge, is a no-op on self-transition, throws `InvalidTransitionException` for non-successor targets, and throws for states absent from the graph keys - `assertState` (single + varargs) returns normally on match and throws `InvalidStateException` on mismatch - `confirmState` (single + varargs) reports membership without side effects - `conditionalTransitTo` runs the callback only when the precondition holds, does nothing otherwise, and still validates the transition edge ### Priority P3 – Low ### Task Type - [x] Testing / QA -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
