mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-30 09:58:12 -07:00
maven pom importing
This commit is contained in:
parent
ac7215ac12
commit
5f739035e0
6 changed files with 216 additions and 3 deletions
19
src/test/kotlin/com/beust/kobalt/maven/PomTest.kt
Normal file
19
src/test/kotlin/com/beust/kobalt/maven/PomTest.kt
Normal file
|
@ -0,0 +1,19 @@
|
|||
package com.beust.kobalt.maven
|
||||
|
||||
import org.testng.Assert
|
||||
import org.testng.annotations.Test
|
||||
import java.io.File
|
||||
|
||||
class PomTest {
|
||||
@Test
|
||||
fun importPom() {
|
||||
val pom = Pom("testing", File("src/test/resources/pom.xml"));
|
||||
|
||||
Assert.assertEquals(pom.groupId, "com.foo.bob")
|
||||
Assert.assertEquals(pom.artifactId, "rawr")
|
||||
Assert.assertEquals(pom.name, "rawr")
|
||||
Assert.assertEquals(pom.version, "1.2.3")
|
||||
Assert.assertEquals(pom.properties.get("commons.version"), "2.1.1")
|
||||
Assert.assertEquals(pom.properties.get("guice.version"), "4.0")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue