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

Method testInit

ZezeJava/ZezeJavaTest/src/UnitTest/Zeze/Game/TestBag.java:22–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 public static final int MAX_BAG_CAPACITY = 100; // 背包容量
21
22 @Before
23 public final void testInit() throws Exception {
24 demo.App.getInstance().Stop();
25 demo.App.getInstance().Start();
26 // 设置下可堆叠个数
27 App.Instance.BagModule.funcItemPileMax = itemId -> MAX_GRID_CAPACITY;
28 }
29
30 @After
31 public final void testCleanup() throws Exception {

Callers

nothing calls this directly

Calls 3

StopMethod · 0.45
getInstanceMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected