Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisCorrelationToPointUnitTest.cpp

    r23b547 re6fdbe  
    1717#include "AnalysisCorrelationToPointUnitTest.hpp"
    1818
    19 #include "World.hpp"
    2019#include "atom.hpp"
    2120#include "boundary.hpp"
     
    5756
    5857  // construct periodentafel
    59   tafel = World::getInstance().getPeriode();
     58  tafel = new periodentafel;
    6059  tafel->AddElement(hydrogen);
    6160
    6261  // construct molecule (tetraeder of hydrogens)
    63   TestMolecule = World::getInstance().createMolecule();
    64   Walker = World::getInstance().createAtom();
     62  TestMolecule = new molecule(tafel);
     63  Walker = new atom();
    6564  Walker->type = hydrogen;
    6665  Walker->node->Init(1., 0., 1. );
    6766  TestMolecule->AddAtom(Walker);
    68   Walker = World::getInstance().createAtom();
     67  Walker = new atom();
    6968  Walker->type = hydrogen;
    7069  Walker->node->Init(0., 1., 1. );
    7170  TestMolecule->AddAtom(Walker);
    72   Walker = World::getInstance().createAtom();
     71  Walker = new atom();
    7372  Walker->type = hydrogen;
    7473  Walker->node->Init(1., 1., 0. );
    7574  TestMolecule->AddAtom(Walker);
    76   Walker = World::getInstance().createAtom();
     75  Walker = new atom();
    7776  Walker->type = hydrogen;
    7877  Walker->node->Init(0., 0., 0. );
     
    8281  CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 );
    8382
    84   TestList = World::getInstance().getMolecules();
     83  TestList = new MoleculeListClass;
    8584  TestMolecule->ActiveFlag = true;
    8685  TestList->insert(TestMolecule);
     
    103102    delete(binmap);
    104103
     104  // remove
     105  delete(TestList);
     106  // note that all the atoms are cleaned by TestMolecule
    105107  delete(point);
    106   World::purgeInstance();
     108  delete(tafel);
     109  // note that element is cleaned by periodentafel
     110  World::destroy();
    107111  MemoryUsageObserver::purgeInstance();
    108112  logger::purgeInstance();
Note: See TracChangeset for help on using the changeset viewer.