Skip to content

Commit

Permalink
Convert field to local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Feb 1, 2021
1 parent 7e654c5 commit 7d6edad
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,9 @@ void appendingNullIsNotAllowed() {
@Nested
class ParsingAndFormatting {

private final String uniqueIdString = "[engine:junit-jupiter]/[class:MyClass]/[method:myMethod]";

@Test
void ensureDefaultUniqueIdFormatIsUsedForParsing() {
var uniqueIdString = "[engine:junit-jupiter]/[class:MyClass]/[method:myMethod]";
var parsedDirectly = UniqueId.parse(uniqueIdString);
var parsedViaFormat = UniqueIdFormat.getDefault().parse(uniqueIdString);
assertEquals(parsedViaFormat, parsedDirectly);
Expand Down

0 comments on commit 7d6edad

Please sign in to comment.