-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ignore java head-dumps * Define initial test infrastructure * Fix model sanitisation * Update test naming to follow typical JUnit test naming convention
- Loading branch information
1 parent
3cb93b6
commit 78731ce
Showing
4 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
*.iml | ||
.* | ||
local.properties | ||
venv/ | ||
build/ | ||
java_pid*.hprof | ||
local.properties | ||
out/ | ||
venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
plugin/src/test/java/com/yelp/codegen/KotlinGeneratorTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.yelp.codegen | ||
|
||
import org.junit.Test | ||
|
||
class KotlinGeneratorTest { | ||
|
||
@Test | ||
fun toModelName_doesNotTrimTooMuch() { | ||
assert(KotlinGenerator().toModelName("model") == "Model") | ||
assert(KotlinGenerator().toModelName("model with space") == "ModelWithSpace") | ||
assert(KotlinGenerator().toModelName("model with dot.s") == "ModelWithDotS") | ||
assert(KotlinGenerator().toModelName("model with userscore_s") == "ModelWithUserscoreS") | ||
} | ||
} |