Skip to content

Commit d00d83f

Browse files
committed
test: move the aspect test to individual package 📦
1 parent a7e8feb commit d00d83f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

cffu-core/src/test/java/io/foldright/cffu/CheckExecutorTests.kt renamed to cffu-core/src/test/java/io/foldright/aspect_test/CheckExecutorOfTests.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
package io.foldright.cffu
1+
package io.foldright.aspect_test
22

3+
import io.foldright.cffu.CompletableFutureUtils
34
import io.foldright.test_utils.*
45
import io.kotest.assertions.fail
56
import io.kotest.core.spec.style.FunSpec
@@ -13,6 +14,9 @@ import java.util.concurrent.TimeUnit.SECONDS
1314
import java.util.function.*
1415
import java.util.function.Function
1516

17+
/**
18+
* Check the executor parameter usage of all method that has Executor parameter.
19+
*/
1620
class CheckExecutorTests : FunSpec({
1721
(1..3).forEach { count ->
1822
test("Multi-Actions(M*) Methods with $count actions") {

cffu-core/src/test/java/io/foldright/cffu/CheckMinStageRuntimeTypeTests.kt renamed to cffu-core/src/test/java/io/foldright/aspect_test/CheckMinStageRuntimeTypeTests.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
package io.foldright.cffu
1+
package io.foldright.aspect_test
22

3+
import io.foldright.cffu.Cffu
4+
import io.foldright.cffu.CompletableFutureUtils
35
import io.foldright.test_utils.*
46
import io.kotest.inspectors.forAll
57
import org.junit.jupiter.api.Test
@@ -10,6 +12,9 @@ import java.util.concurrent.TimeUnit.MILLISECONDS
1012
import java.util.function.Function
1113
import java.util.function.Supplier
1214

15+
/**
16+
* Check the runtime type of return value of all method that returned CompletableFuture/Cffu.
17+
*/
1318
@Suppress("MoveLambdaOutsideParentheses")
1419
private class CheckMinStageRuntimeTypeTests {
1520
private val cfThis: CompletableFuture<String> = completedFuture("cf this")

0 commit comments

Comments
 (0)