~mbogomilov/maus/devel3

« back to all changes in this revision

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

  • Committer: Durga Rajaram
  • Date: 2014-01-14 04:39:44 UTC
  • mfrom: (663.38.24 merge)
  • mto: (698.1.1 release)
  • mto: This revision was merged to the branch mainline in revision 693.
  • Revision ID: durga@fnal.gov-20140114043944-qf0i8nksnwu74cll
candidate 0.7.6 - trunk r1026

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    FRIEND_TEST(MapBaseTest, TestCopyConstructor);
48
48
  };
49
49
 
50
 
  class MyMapper_squeal : public MyMapper {
 
50
  class MyMapper_maus_exception : public MyMapper {
51
51
  public:
52
 
    MyMapper_squeal() : MyMapper() {}
 
52
    MyMapper_maus_exception() : MyMapper() {}
53
53
 
54
54
  private:
55
55
    virtual int* _process(double* t) const {
56
 
      throw Squeal(Squeal::recoverable,
57
 
                   "Expected Test Squeal in _process",
 
56
      throw MAUS::Exception(MAUS::Exception::recoverable,
 
57
                   "Expected Test MAUS::Exception in _process",
58
58
                   "int* _process(double* t) const");
59
59
    }
60
60
  };
161
161
        << std::endl;
162
162
    }
163
163
    /////////////////////////////////////////////////////
164
 
    MyMapper_squeal mm_s;
 
164
    MyMapper_maus_exception mm_s;
165
165
    try {
166
166
      mm_s.process(d);
167
167
    }
168
168
    catch(...) {
169
169
      ASSERT_TRUE(false)
170
 
        << "Fail: Squeal should have been handled"
 
170
        << "Fail: MAUS::Exception should have been handled"
171
171
        << std::endl;
172
172
    }
173
173
 
178
178
    }
179
179
    catch(...) {
180
180
      ASSERT_TRUE(false)
181
 
        << "Fail: Exception should have been handled"
 
181
        << "Fail: MAUS::Exception should have been handled"
182
182
        << std::endl;
183
183
    }
184
184