diff --git a/maven/pom.xml b/maven/pom.xml index 7cf8032391..eff9205118 100644 --- a/maven/pom.xml +++ b/maven/pom.xml @@ -180,10 +180,18 @@ maven-invoker-plugin ${maven-invoker-plugin.version} + + + com.h2database + h2 + ${h2.version} + + true ${project.build.directory}/it ${project.build.directory}/local-repo + setup verify diff --git a/maven/src/it/GenerateJavaWithAnnotations/setup.bsh b/maven/src/it/GenerateJavaWithAnnotations/setup.bsh new file mode 100644 index 0000000000..646818bfe5 --- /dev/null +++ b/maven/src/it/GenerateJavaWithAnnotations/setup.bsh @@ -0,0 +1,12 @@ +import java.sql.DriverManager; +import java.sql.Connection; + +String JDBC_CONNECTION = "jdbc:h2:mem:test"; +String CREATE_PERSON_TABLE = "create table PERSON (ID int not null, NAME varchar(20), primary key (ID))"; + +DriverManager + .getConnection(JDBC_CONNECTION) + .createStatement() + .execute(CREATE_PERSON_TABLE); + +System.out.println("Database created!"); \ No newline at end of file diff --git a/maven/src/it/GenerateJavaWithAnnotations/verify.bsh b/maven/src/it/GenerateJavaWithAnnotations/verify.bsh new file mode 100644 index 0000000000..5bc9f6a949 --- /dev/null +++ b/maven/src/it/GenerateJavaWithAnnotations/verify.bsh @@ -0,0 +1 @@ +System.out.println("Hello from 'verify.bsh'"); \ No newline at end of file