Static Public Member Functions | List of all members
testing::SimpleEnvironmentSetupClass < lar::example::ShowerCalibrationGaloreFromPID, TestEnv > Struct Template Reference

Environment setup helper for ShowerCalibrationGaloreFromPID. More...

#include <ShowerCalibrationGaloreFromPIDTestHelpers.h>

Static Public Member Functions

static lar::example::ShowerCalibrationGaloreFromPIDsetup (TestEnv &env)
 

Detailed Description

template<typename TestEnv>
struct testing::SimpleEnvironmentSetupClass < lar::example::ShowerCalibrationGaloreFromPID, TestEnv >

Environment setup helper for ShowerCalibrationGaloreFromPID.

Template Parameters
TestEnvtype of environment to set up
See also
SimpleEnvironmentSetupClass, simpleEnvironmentSetup

A service provider is set up in the environment, associated with the types lar::example::ShowerCalibrationGaloreFromPID. Its configuration is read from "services.ShowerCalibrationGaloreService".

The environment is expected to expose an interface equivalent to the one of testing::TesterEnvironment.

This class specialisation enables the support of SimpleProviderSetup() methods of testing::TesterEnvironment. It should be possible to set up a testing environment by calling:

env.SimpleProviderSetup<lar::example::ShowerCalibrationGaloreFromPID>();

The provider will be available from any of these two calls:

env.Provider<lar::example::ShowerCalibrationGaloreFromPID>();
env.Provider<lar::example::ShowerCalibrationGalore>();

Definition at line 62 of file ShowerCalibrationGaloreFromPIDTestHelpers.h.

Member Function Documentation

template<typename TestEnv >
static lar::example::ShowerCalibrationGaloreFromPID* testing::SimpleEnvironmentSetupClass < lar::example::ShowerCalibrationGaloreFromPID, TestEnv >::setup ( TestEnv &  env)
inlinestatic

Definition at line 65 of file ShowerCalibrationGaloreFromPIDTestHelpers.h.

66  {
69  lar::example::ShowerCalibrationGalore, // providet interface
70  TestEnv
71  >
72  (env, "ShowerCalibrationGaloreService"); // configuration key
73  }
Shower calibration service provider correcting according to PID.
Prov * SimpleEnvironmentStandardSetupByName(TestEnv &env, std::string service_name)
Basic implementation of a environment setup helper.
Interface for a shower calibration service provider.

The documentation for this struct was generated from the following file: