My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 35 attachment: 0001-Extend-stack-trace-filtering-in-failure.patch (1.3 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From e2e6d877fcbcac1443a3f0243031a142f1795c63 Mon Sep 17 00:00:00 2001
From: Robert Munteanu <robert.munteanu@gmail.com>
Date: Tue, 6 Jan 2009 17:16:50 +0200
Subject: [PATCH] Extend stack trace filtering in failure

Now excludes all org.testng and usual reflection stack trace elements.
---
src/main/org/testng/eclipse/ui/FailureTrace.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/org/testng/eclipse/ui/FailureTrace.java b/src/main/org/testng/eclipse/ui/FailureTrace.java
index a9c00aa..783cc1d 100644
--- a/src/main/org/testng/eclipse/ui/FailureTrace.java
+++ b/src/main/org/testng/eclipse/ui/FailureTrace.java
@@ -237,8 +237,9 @@ class FailureTrace implements IMenuListener {
// the stack frames of the trace
while((line = bufferedReader.readLine()) != null) {
itemLabel = line.replace('\t', ' ');
- if(itemLabel.startsWith(" at org.testng.Assert")
- || itemLabel.startsWith(" at org.testng.AssertJUnit")) {
+ if(itemLabel.startsWith(" at org.testng.") // all testng packages
+ || itemLabel.startsWith(" at sun.reflect.") // reflection
+ || itemLabel.startsWith(" at java.lang.reflect.Method")) { // reflection
continue;

}
--
1.6.0.2

Powered by Google Project Hosting