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]; String sql = (String) statementInvocation.getArguments()[0];
executeStatements.add( sql ); executeStatements.add( sql );
return statementInvocation.callRealMethod(); return statementInvocation.callRealMethod();
}).when( statementSpy ).execute( ArgumentMatchers.anyString() ); } ).when( statementSpy ).execute( ArgumentMatchers.anyString() );
Mockito.doAnswer( statementInvocation -> { Mockito.doAnswer( statementInvocation -> {
String sql = (String) statementInvocation.getArguments()[0]; String sql = (String) statementInvocation.getArguments()[0];
executeUpdateStatements.add( sql ); executeUpdateStatements.add( sql );
return statementInvocation.callRealMethod(); return statementInvocation.callRealMethod();
}).when( statementSpy ).executeUpdate( ArgumentMatchers.anyString() ); } ).when( statementSpy ).executeUpdate( ArgumentMatchers.anyString() );
return statementSpy; return statementSpy;
} ).when( connectionSpy ).createStatement(); } ).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; package org.hibernate.testing.jdbc;
import java.util.LinkedList; import java.util.LinkedList;