/* * Project: MoleCuilder * Description: creates and alters molecular systems * Copyright (C) 2011 University of Bonn. All rights reserved. * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. */ /* * LinkedCell_ControllerUnitTest.cpp * * Created on: Nov 29, 2011 * Author: heber */ // include config.h #ifdef HAVE_CONFIG_H #include #endif using namespace std; #include #include #include #include "Box.hpp" #include "CodePatterns/Assert.hpp" #include "LinearAlgebra/RealSpaceMatrix.hpp" #include "LinkedCell/LinkedCell_Controller.hpp" #include "LinkedCell/unittests/defs.hpp" #include "LinkedCell_ControllerUnitTest.hpp" #ifdef HAVE_TESTRUNNER #include "UnitTestMain.hpp" #endif /*HAVE_TESTRUNNER*/ /********************************************** Test classes **************************************/ // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION( LinkedCell_ControllerTest ); void LinkedCell_ControllerTest::setUp() { // failing asserts should be thrown ASSERT_DO(Assert::Throw); // create diag(20.) matrix BoxM = new RealSpaceMatrix; BoxM->setIdentity(); (*BoxM) *= DOMAINLENGTH; // create Box with this matrix domain = new Box(*BoxM); controller = new LinkedCell::LinkedCell_Controller(*domain); } void LinkedCell_ControllerTest::tearDown() { delete controller; delete domain; } /** UnitTest for LinkedCell_Controller::getViewTest(). */ void LinkedCell_ControllerTest::getViewTest() { CPPUNIT_ASSERT_EQUAL(true, true); }