Skip to content

Commit 445971c

Browse files
committed
Fixup test and spotless.
1 parent fd9b2af commit 445971c

File tree

2 files changed

+5
-5
lines changed
  • lib/src/main/java/com/diffplug/spotless
  • testlib/src/test/java/com/diffplug/spotless

2 files changed

+5
-5
lines changed

lib/src/main/java/com/diffplug/spotless/Jvm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2022 DiffPlug
2+
* Copyright 2016-2023 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

testlib/src/test/java/com/diffplug/spotless/JvmTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 DiffPlug
2+
* Copyright 2021-2023 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -140,9 +140,9 @@ void supportProposesFormatterUpgrade() {
140140
throw new Exception("Some test exception");
141141
}).apply("");
142142
}).getMessage();
143-
assertThat(proposal).contains("not using latest version");
144-
assertThat(proposal).contains(String.format("on JVM %d+", requiredJvm));
145-
assertThat(proposal).contains(String.format("upgrade to %s %s", TEST_NAME, "2"));
143+
assertThat(proposal).isEqualTo("My Test Formatter " + fmtVersion + " is currently being used, but outdated.\n" +
144+
"My Test Formatter 2 is the recommended version, which may have fixed this problem.\n" +
145+
"My Test Formatter 2 requires JVM 10+.");
146146
}
147147
}
148148

0 commit comments

Comments
 (0)