File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
lib/src/main/java/com/diffplug/spotless
testlib/src/test/java/com/diffplug/spotless Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2016-2022 DiffPlug
2
+ * Copyright 2016-2023 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2021 DiffPlug
2
+ * Copyright 2021-2023 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -140,9 +140,9 @@ void supportProposesFormatterUpgrade() {
140
140
throw new Exception ("Some test exception" );
141
141
}).apply ("" );
142
142
}).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+." );
146
146
}
147
147
}
148
148
You can’t perform that action at this time.
0 commit comments