lttng: Don't throw irrelevant exceptions in state system tests
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 1 Mar 2013 22:04:56 +0000 (17:04 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 4 Mar 2013 16:07:27 +0000 (11:07 -0500)
commitc4d139aaf88d591a32d182232c1188f4098125f7
tree74d26fc43b3b8a036a0b114d000cf88ce246185a
parent973e19d6b4635e487e4f00b3e6dfa115f5919421
lttng: Don't throw irrelevant exceptions in state system tests

Some tests expect exceptions, so these have to keep the "throws"
clause. For everything else, handle the excpetion in a try/catch
which will fail() the test if they happen.

This makes it simpler to extend the test cases, since the throws
may or may not be relevant in the subclass.

Change-Id: If71b351ba22bd88377120833eb83e9b78717d579
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/10795
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bhufmann@gmail.com>
IP-Clean: Bernd Hufmann <bhufmann@gmail.com>
Tested-by: Bernd Hufmann <bhufmann@gmail.com>
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/StateSystemFullHistoryTest.java
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/StateSystemTest.java
This page took 0.026437 seconds and 5 git commands to generate.