Suppress warnings in tests

This commit suppresses warnings in test classes that were polluting the
Gradle build output.
This commit is contained in:
Sam Brannen
2014-12-31 02:10:30 +01:00
parent 27b4909f46
commit 40449e2741
5 changed files with 9 additions and 5 deletions

View File

@@ -40,6 +40,7 @@ import static org.mockito.BDDMockito.*;
* @author Juergen Hoeller
* @since 4.1.2
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
public class PersistenceContextTransactionTests {
private EntityManagerFactory factory;
@@ -67,6 +68,7 @@ public class PersistenceContextTransactionTests {
given(manager.isOpen()).willReturn(true);
bean = new EntityManagerHoldingBean();
@SuppressWarnings("serial")
PersistenceAnnotationBeanPostProcessor pabpp = new PersistenceAnnotationBeanPostProcessor() {
@Override
protected EntityManagerFactory findEntityManagerFactory(String unitName, String requestingBeanName) {