Skip to content

Commit

Permalink
test: move the aspect test to individual package 📦
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Nov 30, 2024
1 parent a7e8feb commit d00d83f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.foldright.cffu
package io.foldright.aspect_test

import io.foldright.cffu.CompletableFutureUtils
import io.foldright.test_utils.*
import io.kotest.assertions.fail
import io.kotest.core.spec.style.FunSpec
Expand All @@ -13,6 +14,9 @@ import java.util.concurrent.TimeUnit.SECONDS
import java.util.function.*
import java.util.function.Function

/**
* Check the executor parameter usage of all method that has Executor parameter.
*/
class CheckExecutorTests : FunSpec({
(1..3).forEach { count ->
test("Multi-Actions(M*) Methods with $count actions") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.foldright.cffu
package io.foldright.aspect_test

import io.foldright.cffu.Cffu
import io.foldright.cffu.CompletableFutureUtils
import io.foldright.test_utils.*
import io.kotest.inspectors.forAll
import org.junit.jupiter.api.Test
Expand All @@ -10,6 +12,9 @@ import java.util.concurrent.TimeUnit.MILLISECONDS
import java.util.function.Function
import java.util.function.Supplier

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

0 comments on commit d00d83f

Please sign in to comment.