File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed 
src/it/GenerateJavaWithAnnotations Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 180180      <plugin >
181181        <artifactId >maven-invoker-plugin</artifactId >
182182        <version >${maven-invoker-plugin.version} </version >
183+         <dependencies >
184+           <dependency >
185+             <groupId >com.h2database</groupId >
186+             <artifactId >h2</artifactId >
187+             <version >${h2.version} </version >
188+           </dependency >
189+         </dependencies >
183190        <configuration >
184191          <debug >true</debug >
185192          <cloneProjectsTo >${project.build.directory} /it</cloneProjectsTo >
186193          <localRepositoryPath >${project.build.directory} /local-repo</localRepositoryPath >
194+           <preBuildHookScript >setup</preBuildHookScript >
187195          <postBuildHookScript >verify</postBuildHookScript >
188196        </configuration >
189197        <executions >
Original file line number Diff line number Diff line change 1+ import java.sql.DriverManager;
2+ import java.sql.Connection;
3+ 
4+ String JDBC_CONNECTION = "jdbc:h2:mem:test";
5+ String CREATE_PERSON_TABLE = "create table PERSON (ID int not null, NAME varchar(20), primary key (ID))";
6+ 
7+ DriverManager
8+ 	.getConnection(JDBC_CONNECTION)
9+ 	.createStatement()
10+ 	.execute(CREATE_PERSON_TABLE);
11+ 
12+ System.out.println("Database created!");
Original file line number Diff line number Diff line change 1+ System.out.println("Hello from 'verify.bsh'");
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments