@@ -136,17 +136,17 @@ public void constructor_allBad() {
136
136
"import java.util.Date;" ,
137
137
"public class TestClass {" ,
138
138
" // BUG: Diagnostic contains: "
139
- + "The 1900-based year value (2020) is out of bounds [1..150 ]. "
139
+ + "The 1900-based year value (2020) is out of bounds [1..300 ]. "
140
140
+ "The 0-based month value (13) is out of bounds [0..11]." ,
141
141
" Date bad1 = new Date(2020, 13, 31);" ,
142
142
" // BUG: Diagnostic contains: "
143
- + "The 1900-based year value (2020) is out of bounds [1..150 ]. "
143
+ + "The 1900-based year value (2020) is out of bounds [1..300 ]. "
144
144
+ "The 0-based month value (13) is out of bounds [0..11]. "
145
145
+ "The hours value (-2) is out of bounds [0..23]. "
146
146
+ "The minutes value (61) is out of bounds [0..59]." ,
147
147
" Date bad2 = new Date(2020, 13, 31, -2, 61);" ,
148
148
" // BUG: Diagnostic contains: "
149
- + "The 1900-based year value (2020) is out of bounds [1..150 ]. "
149
+ + "The 1900-based year value (2020) is out of bounds [1..300 ]. "
150
150
+ "The 0-based month value (13) is out of bounds [0..11]. "
151
151
+ "The hours value (-2) is out of bounds [0..23]. "
152
152
+ "The minutes value (61) is out of bounds [0..59]. "
@@ -165,7 +165,7 @@ public void constructor_badYear() {
165
165
"import java.util.Date;" ,
166
166
"public class TestClass {" ,
167
167
" // BUG: Diagnostic contains: "
168
- + "The 1900-based year value (2020) is out of bounds [1..150 ]." ,
168
+ + "The 1900-based year value (2020) is out of bounds [1..300 ]." ,
169
169
" Date bad = new Date(2020, JULY, 10);" ,
170
170
"}" )
171
171
.doTest ();
@@ -222,7 +222,7 @@ public void setters_good() {
222
222
" public void foo(Date date) {" ,
223
223
" date.setYear(1);" ,
224
224
" date.setYear(120);" ,
225
- " date.setYear(150 );" ,
225
+ " date.setYear(300 );" ,
226
226
" date.setMonth(JANUARY);" ,
227
227
" date.setMonth(FEBRUARY);" ,
228
228
" date.setMonth(MARCH);" ,
@@ -261,13 +261,13 @@ public void setters_badYears() {
261
261
"public class TestClass {" ,
262
262
" public void foo(Date date) {" ,
263
263
" // BUG: Diagnostic contains: "
264
- + "The 1900-based year value (0) is out of bounds [1..150 ]." ,
264
+ + "The 1900-based year value (0) is out of bounds [1..300 ]." ,
265
265
" date.setYear(0);" ,
266
266
" // BUG: Diagnostic contains: "
267
- + "The 1900-based year value (-1) is out of bounds [1..150 ]." ,
267
+ + "The 1900-based year value (-1) is out of bounds [1..300 ]." ,
268
268
" date.setYear(-1);" ,
269
269
" // BUG: Diagnostic contains: "
270
- + "The 1900-based year value (2020) is out of bounds [1..150 ]." ,
270
+ + "The 1900-based year value (2020) is out of bounds [1..300 ]." ,
271
271
" date.setYear(2020);" ,
272
272
" }" ,
273
273
"}" )
0 commit comments