Fixed BaseProjectBlueprint initialization in tests
This commit is contained in:
parent
3d87280f9c
commit
316390264e
1 changed files with 3 additions and 4 deletions
|
@ -86,7 +86,7 @@ class CompileKotlinOperationTest {
|
||||||
@Test
|
@Test
|
||||||
void testCollections() {
|
void testCollections() {
|
||||||
var op = new CompileKotlinOperation()
|
var op = new CompileKotlinOperation()
|
||||||
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example", "Example"))
|
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example", "Example", "Example"))
|
||||||
.kotlinHome("/kotlin_home")
|
.kotlinHome("/kotlin_home")
|
||||||
.kotlinc("kotlinc")
|
.kotlinc("kotlinc")
|
||||||
.workDir("work_dir")
|
.workDir("work_dir")
|
||||||
|
@ -167,8 +167,7 @@ class CompileKotlinOperationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
var op = new CompileKotlinOperation()
|
var op = new CompileKotlinOperation()
|
||||||
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
|
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example", "Example", "Example"))
|
||||||
"Example"))
|
|
||||||
.buildMainDirectory(mainDir)
|
.buildMainDirectory(mainDir)
|
||||||
.buildTestDirectory(testDir)
|
.buildTestDirectory(testDir)
|
||||||
.compileMainClasspath(compileJars)
|
.compileMainClasspath(compileJars)
|
||||||
|
@ -208,7 +207,7 @@ class CompileKotlinOperationTest {
|
||||||
@Test
|
@Test
|
||||||
void testFromProjectNoKotlin() {
|
void testFromProjectNoKotlin() {
|
||||||
var op = new CompileKotlinOperation().fromProject(
|
var op = new CompileKotlinOperation().fromProject(
|
||||||
new BaseProjectBlueprint(new File("foo"), "org.example", "foo"));
|
new BaseProjectBlueprint(new File("foo"), "org.example", "foo", "foo"));
|
||||||
assertThat(op.mainSourceDirectories()).isEmpty();
|
assertThat(op.mainSourceDirectories()).isEmpty();
|
||||||
assertThat(op.testSourceDirectories()).isEmpty();
|
assertThat(op.testSourceDirectories()).isEmpty();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue