Skip to content

Commit 4bc2609

Browse files
committed
optimize imports
1 parent ef6b559 commit 4bc2609

File tree

9 files changed

+7
-21
lines changed

9 files changed

+7
-21
lines changed

fxgl-entity/src/test/kotlin/com/almasb/fxgl/entity/EntityExtTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package com.almasb.fxgl.entity
22

33
import com.almasb.fxgl.entity.component.Component
4+
import org.hamcrest.CoreMatchers.`is`
5+
import org.hamcrest.MatcherAssert.assertThat
46
import org.junit.jupiter.api.BeforeEach
57
import org.junit.jupiter.api.Test
6-
import org.hamcrest.CoreMatchers.*
7-
import org.hamcrest.MatcherAssert.assertThat
88

99
internal class EntityExtTest {
1010
private lateinit var entity: Entity

fxgl-entity/src/test/kotlin/com/almasb/fxgl/entity/GameWorldTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
@file:Suppress("JAVA_MODULE_DOES_NOT_DEPEND_ON_MODULE")
77
package com.almasb.fxgl.entity
88

9-
import java.util.Optional
10-
import java.util.function.Predicate
119
import com.almasb.fxgl.entity.component.Component
1210
import com.almasb.fxgl.entity.components.*
1311
import com.almasb.fxgl.entity.level.Level
@@ -28,6 +26,8 @@ import org.junit.jupiter.api.BeforeEach
2826
import org.junit.jupiter.api.Test
2927
import org.junit.jupiter.api.assertThrows
3028
import org.junit.jupiter.api.function.Executable
29+
import java.util.*
30+
import java.util.function.Predicate
3131

3232
class GameWorldTest {
3333

fxgl-entity/src/test/kotlin/com/almasb/fxgl/entity/action/ActionComponentTest.kt

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
package com.almasb.fxgl.entity.action
88

9-
import com.almasb.fxgl.core.serialization.Bundle
10-
import javafx.geometry.Point2D
119
import org.hamcrest.CoreMatchers.`is`
1210
import org.hamcrest.MatcherAssert.assertThat
1311
import org.junit.jupiter.api.Assertions.*

fxgl-entity/src/test/kotlin/com/almasb/fxgl/entity/components/TransformComponentTest.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import javafx.geometry.Point2D
1111
import javafx.geometry.Point3D
1212
import org.hamcrest.CoreMatchers.`is`
1313
import org.hamcrest.MatcherAssert.assertThat
14-
import org.hamcrest.number.IsCloseTo
15-
import org.hamcrest.number.IsCloseTo.*
14+
import org.hamcrest.number.IsCloseTo.closeTo
1615
import org.junit.jupiter.api.Assertions.assertTrue
1716
import org.junit.jupiter.api.Test
1817

fxgl-entity/src/test/kotlin/com/almasb/fxgl/entity/state/StateComponentTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ package com.almasb.fxgl.entity.state
99
import org.hamcrest.CoreMatchers.`is`
1010
import org.hamcrest.CoreMatchers.containsString
1111
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
1414
import org.junit.jupiter.api.BeforeEach
1515
import org.junit.jupiter.api.Test
1616

fxgl-entity/src/test/kotlin/com/almasb/fxgl/pathfinding/astar/AStarPathfinderTest.kt

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import com.almasb.fxgl.pathfinding.CellState
99
import org.junit.jupiter.api.Assertions.assertEquals
1010
import org.junit.jupiter.api.BeforeEach
1111
import org.junit.jupiter.api.Test
12-
import java.util.*
1312
import java.util.function.Supplier
1413

1514
class AStarPathfinderTest {

fxgl-entity/src/test/kotlin/com/almasb/fxgl/physics/HitBoxTest.kt

-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ import org.hamcrest.Matchers
1515
import org.junit.jupiter.api.Assertions.assertTrue
1616
import org.junit.jupiter.api.BeforeEach
1717
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
2318
import java.util.stream.Stream
2419

2520

fxgl-entity/src/test/kotlin/com/almasb/fxgl/physics/box2d/collision/shapes/CircleShapeTest.kt

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import com.almasb.fxgl.physics.box2d.collision.AABB
1111
import com.almasb.fxgl.physics.box2d.common.Transform
1212
import org.hamcrest.CoreMatchers.`is`
1313
import org.hamcrest.MatcherAssert.assertThat
14-
import org.hamcrest.Matchers
15-
import org.junit.jupiter.api.Assertions.assertTrue
1614
import org.junit.jupiter.api.BeforeEach
1715
import org.junit.jupiter.api.Test
1816

fxgl-entity/src/test/kotlin/com/almasb/fxgl/physics/box2d/collision/shapes/PolygonShapeTest.kt

-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ import com.almasb.fxgl.physics.box2d.collision.AABB
1111
import com.almasb.fxgl.physics.box2d.common.Transform
1212
import org.hamcrest.CoreMatchers.`is`
1313
import org.hamcrest.MatcherAssert.assertThat
14-
import org.hamcrest.Matchers
15-
import org.junit.jupiter.api.Assertions.assertTrue
1614
import org.junit.jupiter.api.BeforeEach
1715
import org.junit.jupiter.api.Test
18-
import java.util.*
1916

2017
/**
2118
*

0 commit comments

Comments
 (0)