TestRokubiminiSetup.cpp
Go to the documentation of this file.
1 
7 #include <gtest/gtest.h>
8 
9 #include <ros/package.h>
11 
13 
14 namespace rokubimini
15 {
16 namespace setup
17 {
18 class RokubiminiSetupTest : public ::testing::Test
19 {
20 protected:
23  {
24  rokubiminiSetup = new rokubimini::setup::Setup();
25  }
26 
28  {
29  delete rokubiminiSetup;
30  // You can do clean-up work that doesn't throw exceptions here.
31  }
32 
33  // If the constructor and destructor are not enough for setting up
34  // and cleaning up each test, you can define the following methods:
35 
36  void SetUp() override
37  {
38  // Code here will be called immediately after the constructor (right
39  // before each test).
40  }
41 
42  void TearDown() override
43  {
44  // Code here will be called immediately after each test (right
45  // before the destructor).
46  }
47 };
48 
49 TEST_F(RokubiminiSetupTest, CreateRokubiminiWorksCorrectly)
50 {
51  // EXPECT_EQ(rokubiminiSetup->rokubiminis_.empty(), true);
52  for (int i = 1; i < 156000; i++)
53  {
55  }
56  EXPECT_EQ(rokubiminiSetup->rokubiminis_.size(), (uint32_t)156000);
57 }
58 } // namespace setup
59 } // namespace rokubimini
std::vector< std::shared_ptr< Rokubimini > > rokubiminis_
Definition: Setup.hpp:48
virtual std::shared_ptr< Rokubimini > createRokubimini() const
Creates a Rokubimini Setup instance.
Definition: Setup.cpp:14
TEST_F(RokubiminiSetupTest, CreateRokubiminiWorksCorrectly)
Class represting the setup loaded from a setup file.
Definition: Setup.hpp:21
Tests Configuration.
rokubimini::setup::Setup * rokubiminiSetup


rokubimini
Author(s):
autogenerated on Wed Mar 3 2021 03:09:12