mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Update test to latest TestNG.
This commit is contained in:
parent
c640488483
commit
5ddde740b5
1 changed files with 5 additions and 3 deletions
|
@ -54,6 +54,8 @@ public class DownloadTest @Inject constructor(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val latestTestNg = "6.9.9"
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public fun shouldDownloadNoVersion() {
|
public fun shouldDownloadNoVersion() {
|
||||||
File(localRepo.toFullPath("org/testng/testng")).deleteRecursively()
|
File(localRepo.toFullPath("org/testng/testng")).deleteRecursively()
|
||||||
|
@ -63,13 +65,13 @@ public class DownloadTest @Inject constructor(
|
||||||
val future = dep.jarFile
|
val future = dep.jarFile
|
||||||
val file = future.get()
|
val file = future.get()
|
||||||
Assert.assertFalse(future is CompletedFuture)
|
Assert.assertFalse(future is CompletedFuture)
|
||||||
Assert.assertEquals(file.getName(), "testng-6.9.6.jar")
|
Assert.assertEquals(file.name, "testng-$latestTestNg.jar")
|
||||||
Assert.assertTrue(file.exists())
|
Assert.assertTrue(file.exists())
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dependsOnMethods = arrayOf("shouldDownloadWithVersion"))
|
@Test(dependsOnMethods = arrayOf("shouldDownloadWithVersion"))
|
||||||
public fun shouldFindLocalJar() {
|
public fun shouldFindLocalJar() {
|
||||||
val dep = depFactory.create("org.testng:testng:6.9.6", executor)
|
val dep = depFactory.create("org.testng:testng:$latestTestNg", executor)
|
||||||
val future = dep.jarFile
|
val future = dep.jarFile
|
||||||
Assert.assertTrue(future is CompletedFuture)
|
Assert.assertTrue(future is CompletedFuture)
|
||||||
val file = future.get()
|
val file = future.get()
|
||||||
|
@ -81,7 +83,7 @@ public class DownloadTest @Inject constructor(
|
||||||
val dep = depFactory.create("org.testng:testng:", executor)
|
val dep = depFactory.create("org.testng:testng:", executor)
|
||||||
val future = dep.jarFile
|
val future = dep.jarFile
|
||||||
val file = future.get()
|
val file = future.get()
|
||||||
Assert.assertEquals(file.getName(), "testng-6.9.6.jar")
|
Assert.assertEquals(file.name, "testng-$latestTestNg.jar")
|
||||||
Assert.assertTrue(file.exists())
|
Assert.assertTrue(file.exists())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue