HHH-11593 - Fix checkstyle errors

This commit is contained in:
Andrea Boriero 2017-03-30 10:48:17 +01:00
parent 6b36e01b0c
commit 245dc27e48
2 changed files with 8 additions and 2 deletions

View File

@ -75,12 +75,12 @@ public class PreparedStatementSpyConnectionProvider
String sql = (String) statementInvocation.getArguments()[0];
executeStatements.add( sql );
return statementInvocation.callRealMethod();
}).when( statementSpy ).execute( ArgumentMatchers.anyString() );
} ).when( statementSpy ).execute( ArgumentMatchers.anyString() );
Mockito.doAnswer( statementInvocation -> {
String sql = (String) statementInvocation.getArguments()[0];
executeUpdateStatements.add( sql );
return statementInvocation.callRealMethod();
}).when( statementSpy ).executeUpdate( ArgumentMatchers.anyString() );
} ).when( statementSpy ).executeUpdate( ArgumentMatchers.anyString() );
return statementSpy;
} ).when( connectionSpy ).createStatement();
}

View File

@ -1,3 +1,9 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/add .
package org.hibernate.testing.jdbc;
import java.util.LinkedList;