Add test for fromProject() using the examples project
This commit is contained in:
parent
54228e3149
commit
9fcc5cc362
2 changed files with 9 additions and 9 deletions
|
@ -209,6 +209,15 @@ class CompileKotlinOperationTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void testFromProject() {
|
||||
var examples = new File("examples");
|
||||
var op = new CompileKotlinOperation().fromProject(
|
||||
new BaseProjectBlueprint(examples, "com.example", "examples", "examples"));
|
||||
assertThat(op.mainSourceDirectories()).contains(new File(examples, "src/main/kotlin"));
|
||||
assertThat(op.testSourceDirectories()).contains(new File(examples, "src/test/kotlin"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void testFromProjectNoKotlin() {
|
||||
var op = new CompileKotlinOperation().fromProject(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue