~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to tests/cpp_unit/API/InputBaseTest.cc

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    FRIEND_TEST(InputBaseTest, TestCopyConstructor);
42
42
  };
43
43
 
44
 
  class MyInputter_squeal : public MyInputter {
 
44
  class MyInputter_maus_exception : public MyInputter {
45
45
  public:
46
 
    MyInputter_squeal() : MyInputter() {}
 
46
    MyInputter_maus_exception() : MyInputter() {}
47
47
 
48
48
  private:
49
49
    virtual int* _emitter_cpp() {
50
 
      throw Squeal(Squeal::recoverable,
51
 
                   "Expected Test Squeal in _emitter_cpp",
 
50
      throw MAUS::Exception(MAUS::Exception::recoverable,
 
51
                   "Expected Test MAUS::Exception in _emitter_cpp",
52
52
                   "int* _emitter_cpp()");
53
53
    }
54
54
  };
122
122
      << std::endl;
123
123
 
124
124
    /////////////////////////////////////////////////////
125
 
    MyInputter_squeal mm_s;
 
125
    MyInputter_maus_exception mm_s;
126
126
    try {
127
127
      mm_s.emitter_cpp();
128
128
    }
129
129
    catch(...) {
130
130
      ASSERT_TRUE(false)
131
 
        << "Fail: Squeal should have been handled"
 
131
        << "Fail: MAUS::Exception should have been handled"
132
132
        << std::endl;
133
133
    }
134
134
 
139
139
    }
140
140
    catch(...) {
141
141
      ASSERT_TRUE(false)
142
 
        << "Fail: Exception should have been handled"
 
142
        << "Fail: MAUS::Exception should have been handled"
143
143
        << std::endl;
144
144
    }
145
145