-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
117 additions
and
96 deletions.
There are no files selected for viewing
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
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
16 changes: 16 additions & 0 deletions
16
cffu-core/src/test/java/io/foldright/cffu/CffuTestHelper.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,16 @@ | ||
@file:JvmName("CffuTestHelper") | ||
|
||
package io.foldright.cffu | ||
|
||
import io.foldright.cffu.CffuFactoryBuilder.CffuMadeExecutor | ||
import java.util.concurrent.Executor | ||
|
||
fun CffuFactory.unwrapMadeExecutor(): Executor { | ||
val executor = defaultExecutor() as CffuMadeExecutor | ||
return executor.unwrap() | ||
} | ||
|
||
fun Cffu<*>.unwrapMadeExecutor(): Executor { | ||
val executor = defaultExecutor() as CffuMadeExecutor | ||
return executor.unwrap() | ||
} |
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
16 changes: 0 additions & 16 deletions
16
cffu-core/src/test/java/io/foldright/cffu/DefaultExecutorTestUtils.java
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
19 changes: 19 additions & 0 deletions
19
cffu-core/src/test/java/io/foldright/test_utils/CffuTestConstants.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,19 @@ | ||
@file:JvmName("CffuTestConstants") | ||
|
||
package io.foldright.test_utils | ||
|
||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
// constants for testing | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
const val n = 42 | ||
const val anotherN = 424242 | ||
const val s = "S42" | ||
const val d = 42.1 | ||
|
||
@JvmField | ||
val rte = RuntimeException("Bang") | ||
|
||
@JvmField | ||
val anotherRte = RuntimeException("AnotherBang") |
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
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
Oops, something went wrong.