Skip to content

Commit 868ceb9

Browse files
committed
test: added basic world non-null assertion for broadphase
1 parent 39d4017 commit 868ceb9

File tree

1 file changed

+25
-0
lines changed
  • fxgl-entity/src/test/kotlin/com/almasb/fxgl/physics/box2d/dynamics

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* FXGL - JavaFX Game Library. The MIT License (MIT).
3+
* Copyright (c) AlmasB ([email protected]).
4+
* See LICENSE for details.
5+
*/
6+
7+
package com.almasb.fxgl.physics.box2d.dynamics
8+
9+
import com.almasb.fxgl.core.math.Vec2
10+
import org.junit.jupiter.api.Assertions.*
11+
import org.junit.jupiter.api.Test
12+
13+
/**
14+
*
15+
* @author Almas Baimagambetov ([email protected])
16+
*/
17+
class WorldTest {
18+
19+
@Test
20+
fun `broadphase is not null`() {
21+
val world = World(Vec2())
22+
23+
assertNotNull(world.contactManager.broadPhase)
24+
}
25+
}

0 commit comments

Comments
 (0)