From 000eee16063c322c0d543f5c3bc19cbb7cbd87f3 Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com>
Date: Wed, 19 Nov 2014 20:40:14 -0500
Subject: [PATCH] Added an assertion to the unit test. Seems to actually be
 working.

---
 .../com/syncleus/grail/graph/hibernate/DogBreedTest.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/test/java/com/syncleus/grail/graph/hibernate/DogBreedTest.java b/src/test/java/com/syncleus/grail/graph/hibernate/DogBreedTest.java
index 7f85578..145c3df 100644
--- a/src/test/java/com/syncleus/grail/graph/hibernate/DogBreedTest.java
+++ b/src/test/java/com/syncleus/grail/graph/hibernate/DogBreedTest.java
@@ -2,6 +2,7 @@ package com.syncleus.grail.graph.hibernate;
 
 import com.syncleus.grail.graph.hibernate.domain.Breed;
 import com.syncleus.grail.graph.hibernate.domain.Dog;
+import junit.framework.Assert;
 import org.hibernate.ogm.util.impl.Log;
 import org.hibernate.ogm.util.impl.LoggerFactory;
 import org.junit.Test;
@@ -28,7 +29,6 @@ public class DogBreedTest {
 		//Persist entities the way you are used to in plain JPA
 		try {
 			tm.begin();
-//			logger.infof( "About to store dog and breed" );
 			EntityManager em = emf.createEntityManager();
 			Breed collie = new Breed();
 			collie.setName( "Collie" );
@@ -43,11 +43,11 @@ public class DogBreedTest {
 			tm.commit();
 
 			//Retrieve your entities the way you are used to in plain JPA
-//			logger.infof( "About to retrieve dog and breed" );
 			tm.begin();
 			em = emf.createEntityManager();
 			dina = em.find( Dog.class, dinaId );
-//			logger.infof( "Found dog %s of breed %s", dina.getName(), dina.getBreed().getName() );
+			Assert.assertEquals("Dina", dina.getName());
+			Assert.assertEquals("Collie", dina.getBreed().getName());
 			em.flush();
 			em.close();
 			tm.commit();
-- 
GitLab