Created
March 25, 2019 05:16
-
-
Save BurningDroid/ba30caee86b311117caafce5cd30f993 to your computer and use it in GitHub Desktop.
Kotlin Junit how to test with File
This file contains hidden or 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
class FileTest { | |
@get:Rule | |
val folder: TemporaryFolder = TemporaryFolder() | |
@Test | |
fun test() { | |
folder.newFile("file name") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment