MCPcopy Create free account
hub / github.com/e2wugui/zeze / Before

Method Before

ZezeJava/ZezeJavaTest/src/Infinite/Simulate.java:51–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 2

mainMethod · 0.95
mainMethod · 0.95

Calls 5

AfterMethod · 0.95
getTflushMethod · 0.80
getTable1Method · 0.80
addMethod · 0.65
StartMethod · 0.45

Tested by

no test coverage detected