From f118e8fa50ec0f6ed7826852b555a0eebe8fe386 Mon Sep 17 00:00:00 2001
From: Thomas Moulard <thomas.moulard@gmail.com>
Date: Mon, 27 Dec 2010 20:43:02 +0100
Subject: [PATCH] Fix factory test.

---
 tests/factory.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/factory.cpp b/tests/factory.cpp
index b4fb376..716964d 100644
--- a/tests/factory.cpp
+++ b/tests/factory.cpp
@@ -105,7 +105,7 @@ BOOST_AUTO_TEST_CASE (newEntity)
       (factory.newEntity ("myEntity", "foo"));
 
     boost::shared_ptr<dynamicgraph::Entity> entity2
-      (factory.newEntity ("myEntity", "foo"));
+      (factory.newEntity ("myEntity", "foo2"));
 
     boost::shared_ptr<dynamicgraph::Entity> entity3
       (factory.newEntity ("myEntity", ""));
@@ -119,7 +119,7 @@ BOOST_AUTO_TEST_CASE (newEntity)
   catch (const dynamicgraph::ExceptionFactory& exception)
     {
       BOOST_CHECK_EQUAL (exception.getCode (),
-			 dynamicgraph::ExceptionFactory::OBJECT_CONFLICT);
+			 dynamicgraph::ExceptionFactory::UNREFERED_OBJECT);
     }
 }
 
-- 
GitLab