~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to tests/cpp_unit/API/ReduceBaseTest.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:
40
40
    FRIEND_TEST(ReduceBaseTest, TestCopyConstructor);
41
41
  };
42
42
 
43
 
  class MyReducer_squeal : public MyReducer {
 
43
  class MyReducer_maus_exception : public MyReducer {
44
44
  public:
45
 
    MyReducer_squeal() : MyReducer() {}
 
45
    MyReducer_maus_exception() : MyReducer() {}
46
46
 
47
47
  private:
48
48
    virtual int* _process(int* t) {
49
 
      throw Squeal(Squeal::recoverable,
50
 
                   "Expected Test Squeal in _process",
 
49
      throw MAUS::Exception(MAUS::Exception::recoverable,
 
50
                   "Expected Test MAUS::Exception in _process",
51
51
                   "int* _process(int* t) const");
52
52
    }
53
53
  };
140
140
        << std::endl;
141
141
    }
142
142
    /////////////////////////////////////////////////////
143
 
    MyReducer_squeal mm_s;
 
143
    MyReducer_maus_exception mm_s;
144
144
    try {
145
145
      mm_s.process(i);
146
146
    }
147
147
    catch(...) {
148
148
      ASSERT_TRUE(false)
149
 
        << "Fail: Squeal should have been handled"
 
149
        << "Fail: MAUS::Exception should have been handled"
150
150
        << std::endl;
151
151
    }
152
152
 
157
157
    }
158
158
    catch(...) {
159
159
      ASSERT_TRUE(false)
160
 
        << "Fail: Exception should have been handled"
 
160
        << "Fail: MAUS::Exception should have been handled"
161
161
        << std::endl;
162
162
    }
163
163