Skip to content

Commit 7d6edad

Browse files
committed
Convert field to local variable
1 parent 7e654c5 commit 7d6edad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

platform-tests/src/test/java/org/junit/platform/engine/UniqueIdTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,9 @@ void appendingNullIsNotAllowed() {
128128
@Nested
129129
class ParsingAndFormatting {
130130

131-
private final String uniqueIdString = "[engine:junit-jupiter]/[class:MyClass]/[method:myMethod]";
132-
133131
@Test
134132
void ensureDefaultUniqueIdFormatIsUsedForParsing() {
133+
var uniqueIdString = "[engine:junit-jupiter]/[class:MyClass]/[method:myMethod]";
135134
var parsedDirectly = UniqueId.parse(uniqueIdString);
136135
var parsedViaFormat = UniqueIdFormat.getDefault().parse(uniqueIdString);
137136
assertEquals(parsedViaFormat, parsedDirectly);

0 commit comments

Comments
 (0)