git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Auto cache cleaning + better err in ImageUtilsAnd
[fanfix.git]
/
src
/
be
/
nikiroo
/
utils
/
test
/
TestLauncher.java
diff --git
a/src/be/nikiroo/utils/test/TestLauncher.java
b/src/be/nikiroo/utils/test/TestLauncher.java
index 10a6e2794811036a12f21239d254f7dd3e2c483b..bee3071d7fce7a8689a1be50492b2ca28f729e68 100644
(file)
--- a/
src/be/nikiroo/utils/test/TestLauncher.java
+++ b/
src/be/nikiroo/utils/test/TestLauncher.java
@@
-20,7
+20,7
@@
public class TestLauncher {
private class SetupException extends Exception {
private static final long serialVersionUID = 1L;
private class SetupException extends Exception {
private static final long serialVersionUID = 1L;
- public SetupException(
Exception
e) {
+ public SetupException(
Throwable
e) {
super(e);
}
}
super(e);
}
}
@@
-33,7
+33,7
@@
public class TestLauncher {
private class TearDownException extends Exception {
private static final long serialVersionUID = 1L;
private class TearDownException extends Exception {
private static final long serialVersionUID = 1L;
- public TearDownException(
Exception
e) {
+ public TearDownException(
Throwable
e) {
super(e);
}
}
super(e);
}
}
@@
-96,6
+96,7
@@
public class TestLauncher {
* @throws Exception
* in case of error
*/
* @throws Exception
* in case of error
*/
+ @SuppressWarnings("unused")
protected void start() throws Exception {
}
protected void start() throws Exception {
}
@@
-105,6
+106,7
@@
public class TestLauncher {
* @throws Exception
* in case of error
*/
* @throws Exception
* in case of error
*/
+ @SuppressWarnings("unused")
protected void stop() throws Exception {
}
protected void stop() throws Exception {
}
@@
-185,20
+187,20
@@
public class TestLauncher {
for (TestCase test : tests) {
print(depth, test.getName());
for (TestCase test : tests) {
print(depth, test.getName());
-
Exception
ex = null;
+
Throwable
ex = null;
try {
try {
test.setUp();
try {
try {
test.setUp();
- } catch (
Exception
e) {
+ } catch (
Throwable
e) {
throw new SetupException(e);
}
test.test();
try {
test.tearDown();
throw new SetupException(e);
}
test.test();
try {
test.tearDown();
- } catch (
Exception
e) {
+ } catch (
Throwable
e) {
throw new TearDownException(e);
}
throw new TearDownException(e);
}
- } catch (
Exception
e) {
+ } catch (
Throwable
e) {
ex = e;
}
ex = e;
}
@@
-278,8
+280,8
@@
public class TestLauncher {
*
* @param depth
* the level at which is the launcher (0 = main launcher)
*
* @param depth
* the level at which is the launcher (0 = main launcher)
- * @param
test
- * the {@link TestCase}
+ * @param
name
+ * the {@link TestCase}
name
*/
protected void print(int depth, String name) {
name = prefix(depth, false)
*/
protected void print(int depth, String name) {
name = prefix(depth, false)
@@
-300,7
+302,7
@@
public class TestLauncher {
* @param error
* the {@link Exception} it ran into if any
*/
* @param error
* the {@link Exception} it ran into if any
*/
- private void print(int depth,
Exception
error) {
+ private void print(int depth,
Throwable
error) {
if (error != null) {
System.out.println(" " + koString);
StringWriter sw = new StringWriter();
if (error != null) {
System.out.println(" " + koString);
StringWriter sw = new StringWriter();