Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: added basic world non-null assertion for broadphase
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
fxgl-entity/src/test/kotlin/com/almasb/fxgl/physics/box2d/dynamics/WorldTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* FXGL - JavaFX Game Library. The MIT License (MIT). | ||
* Copyright (c) AlmasB (almaslvl@gmail.com). | ||
* See LICENSE for details. | ||
*/ | ||
|
||
package com.almasb.fxgl.physics.box2d.dynamics | ||
|
||
import com.almasb.fxgl.core.math.Vec2 | ||
import org.junit.jupiter.api.Assertions.* | ||
import org.junit.jupiter.api.Test | ||
|
||
/** | ||
* | ||
* @author Almas Baimagambetov (almaslvl@gmail.com) | ||
*/ | ||
class WorldTest { | ||
|
||
@Test | ||
fun `broadphase is not null`() { | ||
val world = World(Vec2()) | ||
|
||
assertNotNull(world.contactManager.broadPhase) | ||
} | ||
} |