Fix to Hibernate4 module (#1071)
* How to work with dates in Thymeleaf * Fixes in PR for Thymeleaf * Changes to i18n * Resolved issue with i18n
This commit is contained in:
parent
49b973566c
commit
1e74f9dbe8
@ -7,9 +7,9 @@ import org.hibernate.Session;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.Transaction;
|
||||
|
||||
import com.baeldung.hibernate.model.Cart;
|
||||
import com.baeldung.hibernate.model.Items;
|
||||
import com.baeldung.hibernate.config.HibernateAnnotationUtil;
|
||||
import com.baeldung.hibernate.oneToMany.config.HibernateAnnotationUtil;
|
||||
import com.baeldung.hibernate.oneToMany.model.Cart;
|
||||
import com.baeldung.hibernate.oneToMany.model.Items;
|
||||
|
||||
public class HibernateOneToManyAnnotationMain {
|
||||
|
||||
|
@ -1,13 +1,14 @@
|
||||
|
||||
package com.baeldung.hibernate.oneToMany.model;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
|
||||
public class ItemsTest {
|
||||
|
||||
@ -102,7 +103,7 @@ public class ItemsTest {
|
||||
System.out.println("setCart");
|
||||
Cart cart = null;
|
||||
Items instance = new Items();
|
||||
instance.setCart1(cart);
|
||||
instance.setCart(cart);
|
||||
fail("The test failed.");
|
||||
}
|
||||
|
||||
@ -126,6 +127,3 @@ public class ItemsTest {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user