/* ***** BEGIN LICENSE BLOCK *****
 * FW4SPL - Copyright (C) IRCAD, 2009-2012.
 * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
 * published by the Free Software Foundation.
 * ****** END LICENSE BLOCK ****** */

#include <boost/make_shared.hpp>

#include <fwTools/Object.hpp>

#include "ObjectTest.hpp"

// Registers the fixture into the 'registry'
CPPUNIT_TEST_SUITE_REGISTRATION( ::fwTools::ut::ObjectTest );

namespace fwTools
{
namespace ut
{

void ObjectTest::setUp()
{
    // Set up context before running a test.
}

void ObjectTest::tearDown()
{
    // Clean up after the test run.
}

void ObjectTest::idTest()
{
    const std::string UUID = "uid" ;

    // process
    ::fwTools::Object::sptr obj = ::boost::make_shared< ::fwTools::Object >();

    obj->setID(UUID);

    // check
    CPPUNIT_ASSERT(obj->hasID());
    CPPUNIT_ASSERT_EQUAL(obj->getID(), UUID);
}

} // namespace ut
} // namespace fwTools
