Skip to content

Commit

Permalink
HV-787 Replacing deprecated assertion methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Apr 9, 2013
1 parent a1df6a6 commit d550ed2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Expand Up @@ -35,7 +35,7 @@
import org.hibernate.validator.integration.cdi.service.PingServiceImpl;
import org.hibernate.validator.integration.util.IntegrationTestUtil;

import static junit.framework.Assert.assertNotNull;
import static org.junit.Assert.assertNotNull;

/**
* @author Hardy Ferentschik
Expand Down
Expand Up @@ -28,7 +28,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;

import static junit.framework.Assert.assertNotNull;
import static org.junit.Assert.assertNotNull;

/**
* @author Hardy Ferentschik
Expand Down
Expand Up @@ -37,7 +37,7 @@

import org.hibernate.validator.integration.util.IntegrationTestUtil;

import static junit.framework.Assert.assertTrue;
import static org.junit.Assert.assertTrue;

/**
* Tests the integration of Hibernate Validator in JBoss AS 7
Expand Down Expand Up @@ -89,7 +89,7 @@ public void testValidatorFactoryPassedToPersistenceUnit() throws Exception {
// under javax.persistence.validation.factory. This works for the JBoss AS purposes, but not generically
Object obj = properties.get( "javax.persistence.validation.factory" );
assertTrue( "There should be an object under this property", obj != null );
ValidatorFactory factory = ( ValidatorFactory ) obj;
ValidatorFactory factory = (ValidatorFactory) obj;
// assertTrue(
// "The Custom Validator implementation should be used",
// factory instanceof MyValidationProvider.DummyValidatorFactory
Expand Down
Expand Up @@ -37,8 +37,8 @@

import org.hibernate.validator.integration.util.IntegrationTestUtil;

import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertTrue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
* Tests the integration of Hibernate Validator in JBoss AS 7
Expand Down Expand Up @@ -88,7 +88,7 @@ public void testValidatorFactoryPassedToPersistenceUnit() throws Exception {
// under javax.persistence.validation.factory. This works for the JBoss AS purposes, but not generically
Object obj = properties.get( "javax.persistence.validation.factory" );
assertTrue( "There should be an object under this property", obj != null );
ValidatorFactory factory = ( ValidatorFactory ) obj;
ValidatorFactory factory = (ValidatorFactory) obj;
assertEquals(
"The Hibernate Validator implementation should be used",
"ValidatorImpl",
Expand Down
Expand Up @@ -32,9 +32,9 @@

import org.hibernate.validator.integration.util.IntegrationTestUtil;

import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertTrue;
import static junit.framework.Assert.fail;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

/**
* Tests the integration of Hibernate Validator in JBoss AS 7.
Expand Down

0 comments on commit d550ed2

Please sign in to comment.