#include "CoreUtils/UncopiableAndUnmovableClass.h"
#include "CoreUtils/ServiceUtil.h"
#include "canvas/Utilities/Exception.h"
#include "art/Framework/Services/Registry/ServiceScope.h"
#include <cetlib/quiet_unit_test.hpp>
#include <boost/test/test_tools.hpp>
#include <type_traits>
Go to the source code of this file.
#define BOOST_TEST_MODULE ( ServiceUtil_test ) |
BOOST_AUTO_TEST_CASE |
( |
providerFromTest |
| ) |
|
Definition at line 93 of file ServiceUtil_test.cc.
98 BOOST_CHECK_EXCEPTION(gar::providerFrom<MyService>(),
art::Exception,
106 BOOST_CHECK_EQUAL(gar::providerFrom<MyService>(), &prov);
std::unique_ptr< MyService > myServicePtr
GlobalServicesClass GlobalServices
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception