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
9
.idea/runConfigurations/Run Tests.xml
generated
9
.idea/runConfigurations/Run Tests.xml
generated
|
@ -1,9 +0,0 @@
|
||||||
<component name="ProjectRunConfigurationManager">
|
|
||||||
<configuration default="false" name="Run Tests" type="Application" factoryName="Application" nameIsGenerated="true">
|
|
||||||
<option name="MAIN_CLASS_NAME" value="rife.bld.extension.CompileKotlinOperationTest" />
|
|
||||||
<module name="app" />
|
|
||||||
<method v="2">
|
|
||||||
<option name="Make" enabled="true" />
|
|
||||||
</method>
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
|
@ -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
|
@Test
|
||||||
void testFromProjectNoKotlin() {
|
void testFromProjectNoKotlin() {
|
||||||
var op = new CompileKotlinOperation().fromProject(
|
var op = new CompileKotlinOperation().fromProject(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue