mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 14:59:12 +00:00
ANN-817 : 8-bit characters in string values cause unit test failures
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16288 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
bffe7ec6e9
commit
0dd8cf112f
@ -20,7 +20,7 @@ public void testManyToOne() throws Exception {
|
|||||||
Postman pm = new Postman( "Bob", "A01" );
|
Postman pm = new Postman( "Bob", "A01" );
|
||||||
House house = new House();
|
House house = new House();
|
||||||
house.setPostman( pm );
|
house.setPostman( pm );
|
||||||
house.setAddress( "Rue des prés" );
|
house.setAddress( "Rue des pres" );
|
||||||
s.persist( pm );
|
s.persist( pm );
|
||||||
s.persist( house );
|
s.persist( house );
|
||||||
tx.commit();
|
tx.commit();
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
public class TuplizerTest extends TestCase {
|
public class TuplizerTest extends TestCase {
|
||||||
public void testEntityTuplizer() throws Exception {
|
public void testEntityTuplizer() throws Exception {
|
||||||
Cuisine cuisine = ProxyHelper.newCuisineProxy( null );
|
Cuisine cuisine = ProxyHelper.newCuisineProxy( null );
|
||||||
cuisine.setName( "Française" );
|
cuisine.setName( "Francaise" );
|
||||||
Country country = ProxyHelper.newCountryProxy( null );
|
Country country = ProxyHelper.newCountryProxy( null );
|
||||||
country.setName( "France" );
|
country.setName( "France" );
|
||||||
cuisine.setCountry( country );
|
cuisine.setCountry( country );
|
||||||
@ -21,7 +21,7 @@ public void testEntityTuplizer() throws Exception {
|
|||||||
s.clear();
|
s.clear();
|
||||||
cuisine = (Cuisine) s.get(Cuisine.class, cuisine.getId() );
|
cuisine = (Cuisine) s.get(Cuisine.class, cuisine.getId() );
|
||||||
assertNotNull( cuisine );
|
assertNotNull( cuisine );
|
||||||
assertEquals( "Française", cuisine.getName() );
|
assertEquals( "Francaise", cuisine.getName() );
|
||||||
assertEquals( "France", country.getName() );
|
assertEquals( "France", country.getName() );
|
||||||
s.getTransaction().rollback();
|
s.getTransaction().rollback();
|
||||||
s.close();
|
s.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user