Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
3c1f39d0
Commit
3c1f39d0
authored
6 years ago
by
Anna.Kozlova
Browse files
Options
Download
Email Patches
Plain Diff
testng: extract data from junit exceptions if applicable (IDEA-195047)
parent
8d9c9ebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/testng_rt/src/org/testng/IDEATestNGRemoteListener.java
+10
-1
...ns/testng_rt/src/org/testng/IDEATestNGRemoteListener.java
with
10 additions
and
1 deletion
+10
-1
plugins/testng_rt/src/org/testng/IDEATestNGRemoteListener.java
+
10
-
1
View file @
3c1f39d0
...
@@ -225,11 +225,20 @@ public class IDEATestNGRemoteListener {
...
@@ -225,11 +225,20 @@ public class IDEATestNGRemoteListener {
if
(
ex
!=
null
)
{
if
(
ex
!=
null
)
{
ComparisonFailureData
notification
;
ComparisonFailureData
notification
;
try
{
try
{
notification
=
TestNGExpectedPatterns
.
createExceptionNotification
(
failureMessage
);
notification
=
ComparisonFailureData
.
create
(
ex
);
}
}
catch
(
Throwable
e
)
{
catch
(
Throwable
e
)
{
notification
=
null
;
notification
=
null
;
}
}
if
(
notification
==
null
)
{
try
{
notification
=
TestNGExpectedPatterns
.
createExceptionNotification
(
failureMessage
);
}
catch
(
Throwable
e
)
{
notification
=
null
;
}
}
ComparisonFailureData
.
registerSMAttributes
(
notification
,
getTrace
(
ex
),
failureMessage
,
attrs
,
ex
);
ComparisonFailureData
.
registerSMAttributes
(
notification
,
getTrace
(
ex
),
failureMessage
,
attrs
,
ex
);
}
}
else
{
else
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help