添加测试

This commit is contained in:
lu7213 committed 2026-11-07 06:50:14 -05:00
1 parent 68bb68b2b4
commit 72ad60cb60
3 files changed
+831 -2

No files matched your search

@@ -81,10 +81,11 @@ public class AggregationItemCancellationTest {
current.setStatus(3L);
when(items.selectUsdtAggregationTaskItemById(1L)).thenReturn(current);
Method execute = UsdtAggregationWorkflowService.class.getDeclaredMethod("executeItemInternal",
UsdtAggregationTaskItemPlus.class, WalletSigningService.UnlockedWalletSession.class);
UsdtAggregationTaskItemPlus.class, WalletSigningService.UnlockedWalletSession.class,
Boolean.class);
execute.setAccessible(true);
// 不提供钱包服务和签名会话:若取消检查后仍触达转账路径,调用会立即失败。
assertEquals(Boolean.TRUE, execute.invoke(service, snapshot, null));
assertEquals(Boolean.TRUE, execute.invoke(service, snapshot, null, Boolean.FALSE));
}
@Test