Moved from Gradle to bld
This commit is contained in:
parent
886ed86479
commit
f8cf0fd338
321 changed files with 12452 additions and 1492 deletions
|
@ -41,6 +41,7 @@ import net.thauvin.erik.bitly.config.CreateConfig
|
|||
import net.thauvin.erik.bitly.config.UpdateConfig
|
||||
import org.json.JSONObject
|
||||
import org.junit.Before
|
||||
import org.junit.jupiter.api.BeforeAll
|
||||
import java.io.File
|
||||
import java.util.logging.Level
|
||||
import kotlin.test.*
|
||||
|
@ -56,13 +57,6 @@ class BitlyTest {
|
|||
private val longUrl = "https://erik.thauvin.net/blog"
|
||||
private val shortUrl = "https://bit.ly/380ojFd"
|
||||
|
||||
@Before
|
||||
fun before() {
|
||||
with(Utils.logger) {
|
||||
level = Level.FINE
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `token should be specified`() {
|
||||
val test = Bitly()
|
||||
|
@ -283,4 +277,14 @@ class BitlyTest {
|
|||
assertTrue("https://www.example.com".isValidUrl(), "valid url")
|
||||
assertFalse("this is a test".isValidUrl(), "invalid url")
|
||||
}
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
@BeforeAll
|
||||
fun before() {
|
||||
with(Utils.logger) {
|
||||
level = Level.FINE
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue