Commit 4bc2609 1 parent ef6b559 commit 4bc2609 Copy full SHA for 4bc2609
File tree 9 files changed +7
-21
lines changed
fxgl-entity/src/test/kotlin/com/almasb/fxgl
9 files changed +7
-21
lines changed Original file line number Diff line number Diff line change 1
1
package com.almasb.fxgl.entity
2
2
3
3
import com.almasb.fxgl.entity.component.Component
4
+ import org.hamcrest.CoreMatchers.`is`
5
+ import org.hamcrest.MatcherAssert.assertThat
4
6
import org.junit.jupiter.api.BeforeEach
5
7
import org.junit.jupiter.api.Test
6
- import org.hamcrest.CoreMatchers.*
7
- import org.hamcrest.MatcherAssert.assertThat
8
8
9
9
internal class EntityExtTest {
10
10
private lateinit var entity: Entity
Original file line number Diff line number Diff line change 6
6
@file:Suppress(" JAVA_MODULE_DOES_NOT_DEPEND_ON_MODULE" )
7
7
package com.almasb.fxgl.entity
8
8
9
- import java.util.Optional
10
- import java.util.function.Predicate
11
9
import com.almasb.fxgl.entity.component.Component
12
10
import com.almasb.fxgl.entity.components.*
13
11
import com.almasb.fxgl.entity.level.Level
@@ -28,6 +26,8 @@ import org.junit.jupiter.api.BeforeEach
28
26
import org.junit.jupiter.api.Test
29
27
import org.junit.jupiter.api.assertThrows
30
28
import org.junit.jupiter.api.function.Executable
29
+ import java.util.*
30
+ import java.util.function.Predicate
31
31
32
32
class GameWorldTest {
33
33
Original file line number Diff line number Diff line change 6
6
7
7
package com.almasb.fxgl.entity.action
8
8
9
- import com.almasb.fxgl.core.serialization.Bundle
10
- import javafx.geometry.Point2D
11
9
import org.hamcrest.CoreMatchers.`is`
12
10
import org.hamcrest.MatcherAssert.assertThat
13
11
import org.junit.jupiter.api.Assertions.*
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ import javafx.geometry.Point2D
11
11
import javafx.geometry.Point3D
12
12
import org.hamcrest.CoreMatchers.`is`
13
13
import org.hamcrest.MatcherAssert.assertThat
14
- import org.hamcrest.number.IsCloseTo
15
- import org.hamcrest.number.IsCloseTo.*
14
+ import org.hamcrest.number.IsCloseTo.closeTo
16
15
import org.junit.jupiter.api.Assertions.assertTrue
17
16
import org.junit.jupiter.api.Test
18
17
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ package com.almasb.fxgl.entity.state
9
9
import org.hamcrest.CoreMatchers.`is`
10
10
import org.hamcrest.CoreMatchers.containsString
11
11
import org.hamcrest.MatcherAssert.assertThat
12
- import org.junit.jupiter.api.Assertions
13
- import org.junit.jupiter.api.Assertions.*
12
+ import org.junit.jupiter.api.Assertions.assertFalse
13
+ import org.junit.jupiter.api.Assertions.assertTrue
14
14
import org.junit.jupiter.api.BeforeEach
15
15
import org.junit.jupiter.api.Test
16
16
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import com.almasb.fxgl.pathfinding.CellState
9
9
import org.junit.jupiter.api.Assertions.assertEquals
10
10
import org.junit.jupiter.api.BeforeEach
11
11
import org.junit.jupiter.api.Test
12
- import java.util.*
13
12
import java.util.function.Supplier
14
13
15
14
class AStarPathfinderTest {
Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ import org.hamcrest.Matchers
15
15
import org.junit.jupiter.api.Assertions.assertTrue
16
16
import org.junit.jupiter.api.BeforeEach
17
17
import org.junit.jupiter.api.Test
18
- import org.junit.jupiter.params.ParameterizedTest
19
- import org.junit.jupiter.params.provider.MethodSource
20
- import java.io.ByteArrayOutputStream
21
- import java.io.ObjectInputStream
22
- import java.io.ObjectOutputStream
23
18
import java.util.stream.Stream
24
19
25
20
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ import com.almasb.fxgl.physics.box2d.collision.AABB
11
11
import com.almasb.fxgl.physics.box2d.common.Transform
12
12
import org.hamcrest.CoreMatchers.`is`
13
13
import org.hamcrest.MatcherAssert.assertThat
14
- import org.hamcrest.Matchers
15
- import org.junit.jupiter.api.Assertions.assertTrue
16
14
import org.junit.jupiter.api.BeforeEach
17
15
import org.junit.jupiter.api.Test
18
16
Original file line number Diff line number Diff line change @@ -11,11 +11,8 @@ import com.almasb.fxgl.physics.box2d.collision.AABB
11
11
import com.almasb.fxgl.physics.box2d.common.Transform
12
12
import org.hamcrest.CoreMatchers.`is`
13
13
import org.hamcrest.MatcherAssert.assertThat
14
- import org.hamcrest.Matchers
15
- import org.junit.jupiter.api.Assertions.assertTrue
16
14
import org.junit.jupiter.api.BeforeEach
17
15
import org.junit.jupiter.api.Test
18
- import java.util.*
19
16
20
17
/* *
21
18
*
You can’t perform that action at this time.
0 commit comments