| 49 | } |
| 50 | |
| 51 | @Before |
| 52 | public void Before() throws Exception { |
| 53 | After(); |
| 54 | for (int serverId = 10; serverId < AppCount + 10; serverId++) |
| 55 | Apps.add(new App(serverId)); |
| 56 | |
| 57 | for (var app : Apps) |
| 58 | app.Start(); |
| 59 | |
| 60 | var allTFlush = new ArrayList<Zeze.Transaction.TableX<Long, BValue>>(); |
| 61 | var allTable1 = new ArrayList<Zeze.Transaction.TableX<Long, BValue>>(); |
| 62 | for (var app : Apps) { |
| 63 | allTFlush.add(app.app.demo_Module1.getTflush()); |
| 64 | allTable1.add(app.app.demo_Module1.getTable1()); |
| 65 | } |
| 66 | for (var app : Apps) { |
| 67 | app.app.demo_Module1.getTflush().getSimulateTables = () -> allTFlush; |
| 68 | app.app.demo_Module1.getTable1().getSimulateTables = () -> allTable1; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | @After |
| 73 | public void After() throws Exception { |