@@ -93,7 +93,7 @@ void supportListsMinimumJvmIfOnlyHigherJvmSupported() {
9393
9494 assertNull (testSupport .getRecommendedFormatterVersion (), "No formatter version is supported" );
9595
96- for (String fmtVersion : Arrays .asList ("1.2" , "1.2.3" )) {
96+ for (String fmtVersion : Arrays .asList ("1.2" , "1.2.3" , "1.2-SNAPSHOT" , "1.2.3-SNAPSHOT" )) {
9797 String proposal = assertThrows (Exception .class , () -> {
9898 testSupport .assertFormatterSupported (fmtVersion );
9999 }).getMessage ();
@@ -111,7 +111,7 @@ void supportListsMinimumJvmIfOnlyHigherJvmSupported() {
111111 assertThat (proposal ).contains (String .format ("try %s alternatives" , TEST_NAME ));
112112 }
113113
114- for (String fmtVersion : Arrays .asList ("1.2.4" , "2" )) {
114+ for (String fmtVersion : Arrays .asList ("1.2.4" , "2" , "1.2.5-SNAPSHOT" )) {
115115 String proposal = assertThrows (Exception .class , () -> {
116116 testSupport .assertFormatterSupported (fmtVersion );
117117 }).getMessage ();
@@ -132,7 +132,7 @@ void supportProposesFormatterUpgrade() {
132132 testSupport .add (Jvm .version () - 2 , "1" );
133133 testSupport .add (requiredJvm , "2" );
134134 testSupport .add (Jvm .version () + 1 , "3" );
135- for (String fmtVersion : Arrays .asList ("0" , "1" , "1.9" )) {
135+ for (String fmtVersion : Arrays .asList ("0" , "1" , "1.9" , "1.9-SNAPSHOT" )) {
136136 testSupport .assertFormatterSupported (fmtVersion );
137137
138138 String proposal = assertThrows (Exception .class , () -> {
@@ -168,7 +168,7 @@ void supportProposesJvmUpgrade() {
168168 @ Test
169169 void supportAllowsExperimentalVersions () {
170170 testSupport .add (Jvm .version (), "1.0" );
171- for (String fmtVersion : Arrays .asList ("1" , "2.0" )) {
171+ for (String fmtVersion : Arrays .asList ("1" , "2.0" , "1.1-SNAPSHOT" , "2.0-SNAPSHOT" )) {
172172 testSupport .assertFormatterSupported (fmtVersion );
173173
174174 Exception testException = new Exception ("Some test exception" );
0 commit comments