Skip to content

Commit

Permalink
fix for issue#55: "modelFileFolder" test fails on Windows
Browse files Browse the repository at this point in the history
  -changed hardcoded file separator to platform-independent variable
  • Loading branch information
doug-precocity committed Jul 31, 2019
1 parent b027a31 commit a1ca287
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/src/test/java/com/yelp/codegen/KotlinGeneratorTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import org.junit.Assert.assertFalse
import org.junit.Assert.assertNotNull
import org.junit.Assert.assertTrue
import org.junit.Test
import java.io.File

class KotlinGeneratorTest {

Expand Down Expand Up @@ -151,7 +152,8 @@ class KotlinGeneratorTest {
val generator = KotlinGenerator()
generator.additionalProperties()[GROUP_ID] = "com.yelp"
generator.additionalProperties()[ARTIFACT_ID] = "test"
assertTrue(generator.modelFileFolder().endsWith("com/yelp/test/models"))
val sep:String = File.separator
assertTrue(generator.modelFileFolder().endsWith("com${sep}yelp${sep}test${sep}models"))
}

@Test
Expand Down

0 comments on commit a1ca287

Please sign in to comment.