Skip to content

Commit f4665ed

Browse files
committed
tests rename
1 parent 16f4638 commit f4665ed

File tree

13 files changed

+80
-80
lines changed

13 files changed

+80
-80
lines changed

examples/logback/src/main/resources/logback.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<!--<metadata>-->
3333
<!--<tab>-->
34-
<!--<name>customMetaData</name>-->
34+
<!--<name>customMetadata</name>-->
3535
<!--<key>-->
3636
<!--<name>somedata</name>-->
3737
<!--<value>value</value>-->

examples/simple/src/main/java/com/bugsnag/example/simple/ExampleApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void beforeNotify(Report report) {
4747
bugsnag.notify(e, Severity.INFO);
4848
}
4949

50-
// Send a handled exception with custom MetaData
50+
// Send a handled exception with custom Metadata
5151
try {
5252
throw new RuntimeException("Handled exception - custom metadata");
5353
} catch (RuntimeException e) {

examples/spring-web/src/main/java/com/bugsnag/example/spring/web/ApplicationRestController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public String sendHandledExceptionInfo() {
6565

6666
@RequestMapping("/send-handled-exception-with-metadata")
6767
public String sendHandledExceptionWithMetadata() {
68-
LOGGER.info("Sending a handled exception to Bugsnag with custom MetaData");
68+
LOGGER.info("Sending a handled exception to Bugsnag with custom Metadata");
6969
try {
7070
throw new RuntimeException("Handled exception - custom metadata");
7171
} catch (RuntimeException e) {
@@ -79,7 +79,7 @@ public void beforeNotify(Report report) {
7979
});
8080
}
8181

82-
return exampleWebsiteLinks + "<br/>Sent a handled exception to Bugsnag with custom MetaData";
82+
return exampleWebsiteLinks + "<br/>Sent a handled exception to Bugsnag with custom Metadata";
8383
}
8484

8585
@RequestMapping("/send-unhandled-exception")

examples/spring-web/src/main/java/com/bugsnag/example/spring/web/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void beforeNotify(Report report) {
5050
public String exampleWebsiteLinks() {
5151
return "<a href=\"/send-handled-exception\">Send a handled exception to Bugsnag</a><br/>"
5252
+ "<a href=\"/send-handled-exception-info\">Send a handled exception to Bugsnag with INFO severity</a><br/>"
53-
+ "<a href=\"/send-handled-exception-with-metadata\">Send a handled exception to Bugsnag with custom MetaData</a><br/>"
53+
+ "<a href=\"/send-handled-exception-with-metadata\">Send a handled exception to Bugsnag with custom Metadata</a><br/>"
5454
+ "<a href=\"/send-unhandled-exception\">Send an unhandled exception to Bugsnag</a><br/>"
5555
+ "<a href=\"/send-unhandled-exception-async\">Send an unhandled exception to Bugsnag from an async method</a><br/>"
5656
+ "<a href=\"/send-unhandled-exception-async-future\">Send an unhandled exception to Bugsnag from an async method that returns a Future</a><br/>"

examples/spring/src/main/java/com/bugsnag/example/spring/cli/ApplicationCommandLineRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public void run(final String... args) throws Exception {
4343
bugsnag.notify(e, Severity.INFO);
4444
}
4545

46-
// Send a handled exception with custom MetaData
47-
LOGGER.info("Sending a handled exception to Bugsnag with custom MetaData");
46+
// Send a handled exception with custom Metadata
47+
LOGGER.info("Sending a handled exception to Bugsnag with custom Metadata");
4848
try {
4949
throw new RuntimeException("Handled exception - custom metadata");
5050
} catch (RuntimeException e) {

features/async_method.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Scenario: Notify an exception from a spring boot async method
2525
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
2626
And the exception "errorClass" equals "java.lang.RuntimeException"
2727
And the exception "message" equals "test from async"
28-
And the event "metaData.thread.controllerMethod" is null
29-
And the event "metaData.thread.inAsyncMethod" equals "meta data from async method"
28+
And the event "metadata.thread.controllerMethod" is null
29+
And the event "metadata.thread.inAsyncMethod" equals "meta data from async method"
3030

3131
Scenario: Report an exception from a plain spring async method
3232
Given I run the plain spring app

features/fixtures/logback/meta_data_config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<releaseStage>production</releaseStage>
88
<appVersion>1.0.0</appVersion>
99

10-
<metaData>
10+
<metadata>
1111
<tab>
1212
<name>configTab</name>
1313
<key>
@@ -19,7 +19,7 @@
1919
<value>tabValue2</value>
2020
</key>
2121
</tab>
22-
</metaData>
22+
</metadata>
2323

2424
<endpoint>http://localhost:9339/notify</endpoint>
2525
</appender>

features/fixtures/mazerunnerspringboot3/src/main/java/com/bugsnag/mazerunnerspringboot/AsyncMethodService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void doSomethingAsync() {
3232
@Async
3333
public void notifyAsync() {
3434
// Add some thread meta data
35-
Bugsnag.addThreadMetaData("thread", "inAsyncMethod", "meta data from async method");
35+
Bugsnag.addThreadMetadata("thread", "inAsyncMethod", "meta data from async method");
3636

3737
bugsnag.notify(new RuntimeException("test from async"));
3838
}

features/fixtures/mazerunnerspringboot3/src/main/java/com/bugsnag/mazerunnerspringboot/TestRestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public String runAsyncTask() {
5757
public String notifyAsyncTask() {
5858

5959
// Add some thread meta data
60-
Bugsnag.addThreadMetaData("thread", "controllerMethod", "meta data from controller method");
60+
Bugsnag.addThreadMetadata("thread", "controllerMethod", "meta data from controller method");
6161

6262
// Notify before calling the async method
6363
bugsnag.notify(new RuntimeException("test from before async"));

features/meta_data.feature

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4,159 +4,159 @@ Scenario: Sends a handled exception which includes custom metadata added in a no
44
When I run "MetadataScenario" with the defaults
55
And I wait to receive an error
66
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
7-
And the event "metaData.Custom.foo" equals "Hello World!"
7+
And the event "metadata.Custom.foo" equals "Hello World!"
88

99
Scenario: Sends a handled exception which includes custom metadata added in a notify callback for Spring Boot app
1010
When I run spring boot "MetadataScenario" with the defaults
1111
And I wait to receive an error
1212
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
13-
And the event "metaData.Custom.foo" equals "Hello World!"
13+
And the event "metadata.Custom.foo" equals "Hello World!"
1414

1515
Scenario: Sends a handled exception which includes custom metadata added in a notify callback for plain Spring app
1616
When I run plain Spring "MetadataScenario" with the defaults
1717
And I wait to receive an error
1818
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
19-
And the event "metaData.Custom.foo" equals "Hello World!"
19+
And the event "metadata.Custom.foo" equals "Hello World!"
2020

2121
Scenario: Test logback appender with metadata in the config file
2222
When I run "LogbackScenario" with logback config "meta_data_config.xml"
2323
And I wait to receive an error
2424
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
2525
And the error payload field "events" is an array with 1 elements
2626
And the exception "errorClass" equals "java.lang.RuntimeException"
27-
And the event "metaData.configTab.foo" equals "tabValue1"
28-
And the event "metaData.configTab.bar" equals "tabValue2"
27+
And the event "metadata.configTab.foo" equals "tabValue1"
28+
And the event "metadata.configTab.bar" equals "tabValue2"
2929

3030
Scenario: Test logback appender with thread metadata
3131
When I run "LogbackThreadMetadataScenario" with logback config "basic_config.xml"
3232
And I wait to receive an error
3333
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
3434
And the error payload field "events" is an array with 1 elements
3535
And the exception "errorClass" equals "java.lang.RuntimeException"
36-
And the event "metaData.thread.foo" equals "threadvalue1"
37-
And the event "metaData.thread.bar" equals "threadvalue2"
36+
And the event "metadata.thread.foo" equals "threadvalue1"
37+
And the event "metadata.thread.bar" equals "threadvalue2"
3838

3939
Scenario: Test logback appender with metadata in a callback
4040
When I run "LogbackMetadataScenario" with logback config "basic_config.xml"
4141
And I wait to receive an error
4242
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
4343
And the error payload field "events" is an array with 1 elements
4444
And the exception "errorClass" equals "java.lang.RuntimeException"
45-
And the event "metaData.user.foo" equals "hunter2"
46-
And the event "metaData.custom.foo" equals "hunter2"
47-
And the event "metaData.custom.bar" equals "hunter2"
45+
And the event "metadata.user.foo" equals "hunter2"
46+
And the event "metadata.custom.foo" equals "hunter2"
47+
And the event "metadata.custom.bar" equals "hunter2"
4848

4949
Scenario: Test logback appender with metadata from the MDC
5050
When I run "LogbackMDCScenario" with logback config "basic_config.xml"
5151
And I wait to receive an error
5252
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
5353
And the error payload field "events" is an array with 1 elements
5454
And the exception "errorClass" equals "java.lang.RuntimeException"
55-
And the event "metaData.Context.foo" equals "hunter2"
56-
And the event "metaData.Context.bar" equals "hunter2"
55+
And the event "metadata.Context.foo" equals "hunter2"
56+
And the event "metadata.Context.bar" equals "hunter2"
5757

5858
Scenario: Test thread metadata
5959
When I run "ThreadMetadataScenario" with the defaults
6060
And I wait to receive an error
6161
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
6262
And the error payload field "events" is an array with 1 elements
6363
And the exception "errorClass" equals "java.lang.RuntimeException"
64-
And the event "metaData.Custom.test" equals "Global value"
65-
And the event "metaData.Custom.foo" equals "Thread value"
66-
And the event "metaData.Custom.bar" equals "Hello World!"
67-
And the event "metaData.Custom.something" is null
64+
And the event "metadata.Custom.test" equals "Global value"
65+
And the event "metadata.Custom.foo" equals "Thread value"
66+
And the event "metadata.Custom.bar" equals "Hello World!"
67+
And the event "metadata.Custom.something" is null
6868

6969
Scenario: Test thread metadata for Spring Boot app
7070
When I run spring boot "ThreadMetadataScenario" with the defaults
7171
And I wait to receive an error
7272
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
7373
And the error payload field "events" is an array with 1 elements
7474
And the exception "errorClass" equals "java.lang.RuntimeException"
75-
And the event "metaData.Custom.test" equals "Global value"
76-
And the event "metaData.Custom.foo" equals "Thread value"
77-
And the event "metaData.Custom.bar" equals "Hello World!"
78-
And the event "metaData.Custom.something" is null
75+
And the event "metadata.Custom.test" equals "Global value"
76+
And the event "metadata.Custom.foo" equals "Thread value"
77+
And the event "metadata.Custom.bar" equals "Hello World!"
78+
And the event "metadata.Custom.something" is null
7979

8080
Scenario: Test thread metadata for plain Spring app
8181
When I run plain Spring "ThreadMetadataScenario" with the defaults
8282
And I wait to receive an error
8383
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
8484
And the error payload field "events" is an array with 1 elements
8585
And the exception "errorClass" equals "java.lang.RuntimeException"
86-
And the event "metaData.Custom.test" equals "Global value"
87-
And the event "metaData.Custom.foo" equals "Thread value"
88-
And the event "metaData.Custom.bar" equals "Hello World!"
89-
And the event "metaData.Custom.something" is null
86+
And the event "metadata.Custom.test" equals "Global value"
87+
And the event "metadata.Custom.foo" equals "Thread value"
88+
And the event "metadata.Custom.bar" equals "Hello World!"
89+
And the event "metadata.Custom.something" is null
9090

9191
Scenario: Test unhandled thread metadata
9292
When I run "UnhandledThreadMetadataScenario" with the defaults
9393
And I wait to receive an error
9494
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
9595
And the error payload field "events" is an array with 1 elements
9696
And the exception "errorClass" equals "java.lang.RuntimeException"
97-
And the event "metaData.Custom.test" equals "Global value"
98-
And the event "metaData.Custom.foo" equals "Thread value 1"
99-
And the event "metaData.Custom.bar" equals "Thread value 2"
100-
And the event "metaData.Custom.something" is null
97+
And the event "metadata.Custom.test" equals "Global value"
98+
And the event "metadata.Custom.foo" equals "Thread value 1"
99+
And the event "metadata.Custom.bar" equals "Thread value 2"
100+
And the event "metadata.Custom.something" is null
101101

102102
Scenario: Test unhandled thread metadata for Spring Boot app
103103
When I run spring boot "UnhandledThreadMetadataScenario" with the defaults
104104
And I wait to receive an error
105105
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
106106
And the error payload field "events" is an array with 1 elements
107107
And the exception "errorClass" equals "java.lang.RuntimeException"
108-
And the event "metaData.Custom.test" equals "Global value"
109-
And the event "metaData.Custom.foo" equals "Thread value 1"
110-
And the event "metaData.Custom.bar" equals "Thread value 2"
111-
And the event "metaData.Custom.something" is null
108+
And the event "metadata.Custom.test" equals "Global value"
109+
And the event "metadata.Custom.foo" equals "Thread value 1"
110+
And the event "metadata.Custom.bar" equals "Thread value 2"
111+
And the event "metadata.Custom.something" is null
112112

113113
Scenario: Test unhandled thread metadata for plain Spring app
114114
When I run plain Spring "UnhandledThreadMetadataScenario" with the defaults
115115
And I wait to receive an error
116116
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
117117
And the error payload field "events" is an array with 1 elements
118118
And the exception "errorClass" equals "java.lang.RuntimeException"
119-
And the event "metaData.Custom.test" equals "Global value"
120-
And the event "metaData.Custom.foo" equals "Thread value 1"
121-
And the event "metaData.Custom.bar" equals "Thread value 2"
122-
And the event "metaData.Custom.something" is null
119+
And the event "metadata.Custom.test" equals "Global value"
120+
And the event "metadata.Custom.foo" equals "Thread value 1"
121+
And the event "metadata.Custom.bar" equals "Thread value 2"
122+
And the event "metadata.Custom.something" is null
123123

124124
Scenario: Test logback appender with thread metadata
125125
When I run "LogbackThreadMetadataScenario" with logback config "basic_config.xml"
126126
And I wait to receive an error
127127
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
128128
And the error payload field "events" is an array with 1 elements
129129
And the exception "errorClass" equals "java.lang.RuntimeException"
130-
And the event "metaData.thread.foo" equals "threadvalue1"
131-
And the event "metaData.thread.bar" equals "threadvalue2"
132-
And the event "metaData.Custom.something" is null
130+
And the event "metadata.thread.foo" equals "threadvalue1"
131+
And the event "metadata.thread.bar" equals "threadvalue2"
132+
And the event "metadata.Custom.something" is null
133133

134134
Scenario: Test thread meta data in plain spring async method
135135
Given I run the plain spring app
136136
When I navigate to the route "/run-async-task" on port "8080"
137137
And I wait to receive an error
138138
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
139-
And the event "metaData.thread.key1" is null
140-
And the event "metaData.thread.key2" equals "should be included in meta data"
139+
And the event "metadata.thread.key1" is null
140+
And the event "metadata.thread.key2" equals "should be included in meta data"
141141

142142
Scenario: Test thread meta data in spring boot async method
143143
When I run spring boot "AsyncMethodScenario" with the defaults
144144
And I wait to receive an error
145145
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
146-
And the event "metaData.thread.key1" is null
147-
And the event "metaData.thread.key2" equals "should be included in meta data"
146+
And the event "metadata.thread.key1" is null
147+
And the event "metadata.thread.key2" equals "should be included in meta data"
148148

149149
Scenario: Test thread meta data in plain spring scheduled task
150150
Given I set environment variable "RUN_SCHEDULED_TASK" to "true"
151151
And I run the plain spring app
152152
And I wait to receive an error
153153
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
154-
And the event "metaData.thread.key1" is null
155-
And the event "metaData.thread.key2" equals "should be included in meta data"
154+
And the event "metadata.thread.key1" is null
155+
And the event "metadata.thread.key2" equals "should be included in meta data"
156156

157157
Scenario: Test thread meta data in spring boot scheduled task
158158
When I run spring boot "ScheduledTaskScenario" with the defaults
159159
And I wait to receive an error
160160
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
161-
And the event "metaData.thread.key1" is null
162-
And the event "metaData.thread.key2" equals "should be included in meta data"
161+
And the event "metadata.thread.key1" is null
162+
And the event "metadata.thread.key2" equals "should be included in meta data"

0 commit comments

Comments
 (0)