Classes | Macros
BoostedAtomicNumber_test.cc File Reference

Tests the AtomicNumber service provider (with Boost unit test) More...

#include "larexamples/Services/AtomicNumber/Providers/AtomicNumber.h"
#include "larcorealg/TestUtils/unit_test_base.h"
#include "larcorealg/TestUtils/boost_unit_test_base.h"

Go to the source code of this file.

Classes

struct  AtomicNumberTestFixture
 

Macros

#define BOOST_TEST_MODULE   (Boosted atomic number test)
 
using BoostBasicFixture = testing::TesterEnvironment< testing::BoostCommandLineConfiguration< testing::BasicEnvironmentConfiguration > >
 
 BOOST_AUTO_TEST_CASE (AllTests)
 

Detailed Description

Tests the AtomicNumber service provider (with Boost unit test)

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
April 14, 2016
See also
AtomicNumber.h

This test takes a configuration file as first command line argument. The content of the configuration file is expected to include:

Definition in file BoostedAtomicNumber_test.cc.

Macro Definition Documentation

#define BOOST_TEST_MODULE   (Boosted atomic number test)

Definition at line 21 of file BoostedAtomicNumber_test.cc.

Typedef Documentation

Definition at line 36 of file BoostedAtomicNumber_test.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( AllTests  )

Definition at line 59 of file BoostedAtomicNumber_test.cc.

59  {
60 
61  // these are the results we expect:
62  auto const expected_Z = pset_expected.get<unsigned int>("AtomicNumber");
63 
64  // here goes the test... Zprov is the data member of the fixture
65  BOOST_TEST(Zprov.Z() == expected_Z);
66 
67 } // BOOST_AUTO_TEST_CASE(AllTests)