Skip to content

Commit 17100b2

Browse files
committed
Fix tests
1 parent 5cd8af4 commit 17100b2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

grails-bootstrap/src/main/groovy/org/grails/exceptions/reporting/DefaultStackTraceFilterer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class DefaultStackTraceFilterer implements StackTraceFilterer {
3939
"org.springframework.web.filter",
4040
"org.springframework.boot.actuate",
4141
"org.mortbay.",
42+
"groovy.lang.",
4243
"org.apache.catalina.",
4344
"org.apache.coyote.",
4445
"org.apache.tomcat.",

grails-core/src/test/groovy/org/codehaus/groovy/grails/exceptions/StackTraceFiltererSpec.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class FooController {
3636

3737
then: "Only valid stack elements are retained"
3838
exception != null
39-
exception.stackTrace.size() == 2
39+
exception.stackTrace.size() == 3
4040
exception.stackTrace[0].className == 'test.FooController'
4141
exception.stackTrace[0].lineNumber == 10
4242
exception.stackTrace[1].lineNumber == 6
@@ -84,7 +84,7 @@ class FooService {
8484

8585
then: "Only valid stack elements are retained"
8686
exception != null
87-
exception.stackTrace.size() == 2
87+
exception.stackTrace.size() == 3
8888
exception.stackTrace[0].className == 'test.FooController'
8989
exception.stackTrace[0].lineNumber == 15
9090
exception.stackTrace[1].lineNumber == 7

grails-core/src/test/groovy/org/codehaus/groovy/grails/exceptions/StackTracePrinterSpec.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class StackTracePrinterSpec extends Specification {
2828

2929
then:"The formatting is correctly applied"
3030
result != null
31-
result.contains '->> 7 | callMe in test.FooController'
31+
result.contains '->> 7 | callMe in test.FooController'
3232
}
3333

3434
void "Test pretty print nested stack trace"() {
@@ -50,8 +50,8 @@ class StackTracePrinterSpec extends Specification {
5050

5151
then:"The formatting is correctly applied"
5252
result != null
53-
result.contains '->> 14 | nesting in test.FooController'
54-
result.contains '->> 3 | callMe in test.FooService'
53+
result.contains '->> 14 | nesting in test.FooController'
54+
result.contains '->> 3 | callMe in test.FooService'
5555
}
5656

5757
void "Test pretty print code snippet"() {

0 commit comments

Comments
 (0)