Commit 3954336
committed
Update stringRepresentation test expectations for JUnit 5.14.1
JUnit 5.14.1 fixes a test discovery bug where package-private test methods
inherited from superclasses in different packages were not being discovered.
This caused only 1 of 31 tests to run in these test classes on main branch.
The stringRepresentation() tests had outdated expectations since commit
f720735 (June 2025) which changed HttpExporterBuilder.toString() format,
but the failures were masked by the JUnit bug.
Fixed by:
- Updating field order to match actual toString() output
- Replacing removed fields (exporterName, type) with new fields
(exporterType, componentLoader, internalTelemetrySchemaVersion)
- Using flexible regex for memoryMode (IMMUTABLE_DATA|REUSABLE_DATA)
See: https://docs.junit.org/5.14.1/release-notes/#release-notes-5.14.1-junit-jupiter-bug-fixes1 parent edf3f02 commit 3954336
File tree
3 files changed
+12
-15
lines changed- exporters/otlp/all/src
- testDefaultSender/java/io/opentelemetry/exporter/otlp/http
- metrics
- trace
- testJdkHttpSender/java/io/opentelemetry/exporter/otlp/http/metrics
3 files changed
+12
-15
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 89 | | |
93 | 90 | | |
94 | 91 | | |
| |||
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| |||
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
53 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
108 | 105 | | |
109 | 106 | | |
110 | | - | |
| 107 | + | |
111 | 108 | | |
112 | 109 | | |
113 | 110 | | |
| |||
0 commit comments