| 357 | end |
| 358 | |
| 359 | def test_exception |
| 360 | p 'test_exception' |
| 361 | assert_raise Thrift::Test::Xception do |
| 362 | @client.testException('Xception') |
| 363 | end |
| 364 | begin |
| 365 | @client.testException('TException') |
| 366 | rescue => e |
| 367 | assert e.class.ancestors.include?(Thrift::Exception) |
| 368 | end |
| 369 | assert_nothing_raised do |
| 370 | @client.testException('test') |
| 371 | end |
| 372 | end |
| 373 | |
| 374 | def test_multi_exception |
| 375 | p 'test_multi_exception' |
no test coverage detected