1
0
Fork 0
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:
evanchooly 2015-10-06 21:14:33 -04:00
parent ac7215ac12
commit 5f739035e0
6 changed files with 216 additions and 3 deletions

View 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")
}
}