]> source.dussan.org Git - jgit.git/commit
Don't throw away the stack trace when tests fail 49/4549/1
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 5 Nov 2011 15:52:24 +0000 (16:52 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 6 Nov 2011 09:00:06 +0000 (10:00 +0100)
commit790ddb2983bce01d2d0b5b1049d5576fa0c136a8
treeb15de385044a2f9de8eff812f8b1d1653958b58d
parent00235c77d6e636aac5896f0b1e76b1e43e84410f
Don't throw away the stack trace when tests fail

Most unexpected exceptions are completely useless yielding message
like "null" or "3" or in the best cases something reasonable, but
still out of context.

Just declare the test as throwing an exception. That will retain
the full stack trace leading to the point of failure without using
a debugger or changing the code.

Change-Id: Id2454d328d1aa665606ae002de2c3805fe7baa8e
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CheckoutCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/LsRemoteCommandTest.java