wip tests

master
Robinson 2021-04-25 19:26:21 +02:00
parent 4f6443c28c
commit 2aadbf9d95
2 changed files with 10 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import java.util.*
import java.util.concurrent.TimeUnit
fun main() {
Updates.DEBUG = true
Updates.add(TestA::class.java, UUID.randomUUID().toString().replace("-", ""), "121.0")
Thread.sleep(TimeUnit.MINUTES.toMillis(5))
}

View File

@ -21,6 +21,7 @@
package dorkbox
import dorkbox.updates.Updates
import org.junit.Test
import java.util.*
import java.util.concurrent.TimeUnit
@ -29,4 +30,11 @@ fun main() {
Thread.sleep(TimeUnit.MINUTES.toMillis(5))
}
class TestB {}
class TestB {
@Test
fun uuid() {
// Updates.DEBUG = true // requires GradleUtils.allowKotlinInternalAccessForTests
Updates.add(TestB::class.java, UUID.randomUUID().toString().replace("-", ""), "121.0")
Thread.sleep(TimeUnit.SECONDS.toMillis(5))
}
}