Add test of Kotlin Lombok project compilation

This test checks that the project with Lombok plugin will be compiled successfully after successful import (KTIJ-20506)

#KTIJ-20641 Fixed
This commit is contained in:
Aleksei.Cherepanov
2022-01-28 15:50:17 +03:00
committed by Space
parent 2c3b2ccf6f
commit 0e0b3e6d75
10 changed files with 95 additions and 1 deletions
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<annotationProcessing>
<profile default="true" name="Default" enabled="true" />
</annotationProcessing>
</component>
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/kotlinProject.iml" filepath="$PROJECT_DIR$/kotlinProject.iml" />
</modules>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="IDEA_JDK" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
@@ -0,0 +1,10 @@
public class JavaUsage {
public static void main(String[] args) {
SomePojo obj = new SomePojo();
obj.setAge(12);
boolean v = obj.isHuman();
obj.setHuman(!v);
System.out.println(obj);
}
}
@@ -0,0 +1,8 @@
fun main() {
val obj = SomePojo()
obj.name = "test"
obj.age = 12
val v = obj.isHuman
obj.isHuman = !v
println(obj)
}
@@ -0,0 +1,12 @@
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter @Setter @ToString
public class SomePojo {
private String name;
private int age;
private boolean human;
}