Belle II Software  release-05-01-25
test_DatabaseRepresentationOfWeightfile.cc
1 /* BASF2 (Belle Analysis Framework 2) *
2  * Copyright(C) 2016 - Belle II Collaboration *
3  * *
4  * Author: The Belle II Collaboration *
5  * Contributors: Thomas Keck *
6  * *
7  * This software is provided "as is" without any warranty. *
8  **************************************************************************/
9 
10 #include <mva/dataobjects/DatabaseRepresentationOfWeightfile.h>
11 
12 #include <gtest/gtest.h>
13 
14 using namespace Belle2;
15 
16 namespace {
17 
18  TEST(DatabaseRepresentationOfWeightfileTest, Construction)
19  {
20 
22  EXPECT_EQ(x.m_data, std::string());
23 
24  }
25 
26  TEST(DatabaseRepresentationOfWeightfileTest, TObjectClassNameDoesNotChange)
27  {
28 
29  // Renaming this class probably invalids all the stored weighfiles in the database,
30  // hence this test
32  EXPECT_EQ(std::string(x.ClassName()), std::string("Belle2::DatabaseRepresentationOfWeightfile"));
33 
34  }
35 
36 }
Belle2::DatabaseRepresentationOfWeightfile
Database representation of a Weightfile object.
Definition: DatabaseRepresentationOfWeightfile.h:30
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TEST
TEST(TestgetDetectorRegion, TestgetDetectorRegion)
Test Constructors.
Definition: utilityFunctions.cc:18