... | ... |
@@ -1,7 +1,28 @@ |
1 | 1 |
module Rubysermon |
2 | 2 |
class ModTemplate |
3 | 3 |
|
4 |
+ def initialize |
|
5 |
+ throw Rubysermon::ModTemplateException |
|
6 |
+ end |
|
7 |
+ |
|
8 |
+ def load_options |
|
9 |
+ throw Rubysermon::ModTemplateException |
|
10 |
+ end |
|
11 |
+ |
|
12 |
+ def results |
|
13 |
+ throw Rubysermon::ModTemplateException |
|
14 |
+ end |
|
15 |
+ |
|
16 |
+ def notify? |
|
17 |
+ throw Rubysermon::ModTemplateException |
|
18 |
+ end |
|
4 | 19 |
end |
5 | 20 |
|
6 |
- class ModTemplateException < Exception; end |
|
21 |
+ class ModTemplateException < Exception |
|
22 |
+ |
|
23 |
+ def initialize(msg = "Method not implemented") |
|
24 |
+ super(msg) |
|
25 |
+ end |
|
26 |
+ |
|
27 |
+ end |
|
7 | 28 |
end |
8 | 29 |
\ No newline at end of file |
... | ... |
@@ -2,4 +2,9 @@ require_relative '../../test_helper.rb' |
2 | 2 |
|
3 | 3 |
class ModTemplate_test < MiniTest::Unit::TestCase |
4 | 4 |
|
5 |
+ def test_default_exception_message |
|
6 |
+ e = Rubysermon::ModTemplateException.new |
|
7 |
+ assert_equal("Method not implemented", e.message) |
|
8 |
+ end |
|
9 |
+ |
|
5 | 10 |
end |
6 | 11 |
\ No newline at end of file |