Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 141688

Summary: [junit] there should be better stacktrace filters for junit4
Product: [Eclipse Project] JDT Reporter: Stefan Matthias Aust <sma>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: CLOSED WORKSFORME QA Contact:
Severity: minor    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Stefan Matthias Aust CLA 2006-05-14 04:58:16 EDT
by default, I'd suggest add filters for

 org.junit.Assert

and 

 org.junit.internal.runners.*

or

 org.junit.internal.*

as well as

 org.eclipse.jdt.internal.junit4.*

and perhaps also for

 sun.reflect.*

This helps to keep the stacktrace readable.
Comment 1 Markus Keller CLA 2006-05-15 10:45:46 EDT
In recent builds, the following filters are installed by default:

org.eclipse.jdt.internal.junit.runner.*
org.eclipse.jdt.internal.junit.ui.*
org.eclipse.jdt.internal.junit4.runner.*
org.junit.*
sun.reflect.*
junit.framework.TestCase
junit.framework.TestResult
junit.framework.TestResult$1
junit.framework.TestSuite
junit.framework.Assert
java.lang.reflect.Method.invoke

Please try a recent build such as 3.2 RC4, and reopen this bug if you still find the list unsatisfactory after having used "Restore Defaults" on Preferences > Java > JUnit.
Comment 2 Stefan Matthias Aust CLA 2006-05-31 05:30:50 EDT
"Reset Default" did the trick. Thanks.