Home
last modified time | relevance | path

Searched refs:expectedExceptions (Results 1 – 25 of 97) sorted by relevance

1234

/libcore/ojluni/src/test/java/util/Collection/
DSetFactories.java124 @Test(dataProvider="all", expectedExceptions=UnsupportedOperationException.class)
129 @Test(dataProvider="nonempty", expectedExceptions=UnsupportedOperationException.class)
139 @Test(expectedExceptions=IllegalArgumentException.class)
144 @Test(expectedExceptions=IllegalArgumentException.class)
149 @Test(expectedExceptions=IllegalArgumentException.class)
154 @Test(expectedExceptions=IllegalArgumentException.class)
159 @Test(expectedExceptions=IllegalArgumentException.class)
164 @Test(expectedExceptions=IllegalArgumentException.class)
169 @Test(expectedExceptions=IllegalArgumentException.class)
174 @Test(expectedExceptions=IllegalArgumentException.class)
[all …]
/libcore/ojluni/src/test/java/io/Writer/
DNullWriter.java118 @Test(groups = "closed", expectedExceptions = IOException.class)
123 @Test(groups = "closed", expectedExceptions = IOException.class)
129 @Test(groups = "closed", expectedExceptions = IOException.class)
134 @Test(groups = "closed", expectedExceptions = IOException.class)
140 @Test(groups = "closed", expectedExceptions = IOException.class)
145 @Test(groups = "closed", expectedExceptions = IOException.class)
150 @Test(groups = "closed", expectedExceptions = IOException.class)
155 @Test(groups = "closed", expectedExceptions = IOException.class)
160 @Test(groups = "closed", expectedExceptions = IOException.class)
165 @Test(groups = "closed", expectedExceptions = IOException.class)
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatterBuilder.java140 @Test(expectedExceptions = NullPointerException.class)
146 @Test(expectedExceptions=NullPointerException.class)
152 @Test(expectedExceptions=NullPointerException.class)
157 @Test(expectedExceptions=IllegalArgumentException.class)
162 @Test(expectedExceptions=IllegalArgumentException.class)
168 @Test(expectedExceptions=NullPointerException.class)
173 @Test(expectedExceptions=IllegalArgumentException.class)
178 @Test(expectedExceptions=IllegalArgumentException.class)
183 @Test(expectedExceptions=IllegalArgumentException.class)
188 @Test(expectedExceptions=IllegalArgumentException.class)
[all …]
DTCKDateTimeFormatter.java142 @Test(expectedExceptions=NullPointerException.class)
408 @Test(expectedExceptions = DateTimeException.class)
414 @Test(expectedExceptions = NullPointerException.class)
429 @Test(expectedExceptions=DateTimeException.class)
436 @Test(expectedExceptions=NullPointerException.class)
443 @Test(expectedExceptions=NullPointerException.class)
475 @Test(expectedExceptions=NullPointerException.class)
513 @Test(expectedExceptions=DateTimeParseException.class)
526 @Test(expectedExceptions=IndexOutOfBoundsException.class)
532 @Test(expectedExceptions=NullPointerException.class)
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalDate.java249 @Test(expectedExceptions=NullPointerException.class)
272 @Test(expectedExceptions=NullPointerException.class)
321 @Test(expectedExceptions=DateTimeException.class)
334 @Test(expectedExceptions=DateTimeException.class)
348 @Test(expectedExceptions=DateTimeException.class)
353 @Test(expectedExceptions=DateTimeException.class)
358 @Test(expectedExceptions=DateTimeException.class)
363 @Test(expectedExceptions=DateTimeException.class)
368 @Test(expectedExceptions=NullPointerException.class)
373 @Test(expectedExceptions=DateTimeException.class)
[all …]
DTCKLocalDateTime.java278 @Test(expectedExceptions=NullPointerException.class)
295 @Test(expectedExceptions=NullPointerException.class)
355 @Test(expectedExceptions=DateTimeException.class)
368 @Test(expectedExceptions=DateTimeException.class)
384 @Test(expectedExceptions=DateTimeException.class)
389 @Test(expectedExceptions=NullPointerException.class)
394 @Test(expectedExceptions=DateTimeException.class)
399 @Test(expectedExceptions=DateTimeException.class)
404 @Test(expectedExceptions=DateTimeException.class)
409 @Test(expectedExceptions=DateTimeException.class)
[all …]
DTCKMonthDay.java169 @Test(expectedExceptions=NullPointerException.class)
201 @Test(expectedExceptions=NullPointerException.class)
212 @Test(expectedExceptions=DateTimeException.class)
217 @Test(expectedExceptions=DateTimeException.class)
222 @Test(expectedExceptions=NullPointerException.class)
233 @Test(expectedExceptions=DateTimeException.class)
238 @Test(expectedExceptions=DateTimeException.class)
244 @Test(expectedExceptions=DateTimeException.class)
249 @Test(expectedExceptions=DateTimeException.class)
260 @Test(expectedExceptions=DateTimeException.class)
[all …]
DTCKZoneOffset.java188 @Test(expectedExceptions=NullPointerException.class)
305 @Test(expectedExceptions=DateTimeException.class)
310 @Test(expectedExceptions=DateTimeException.class)
332 @Test(expectedExceptions=DateTimeException.class)
337 @Test(expectedExceptions=DateTimeException.class)
362 @Test(expectedExceptions=DateTimeException.class)
367 @Test(expectedExceptions=DateTimeException.class)
372 @Test(expectedExceptions=DateTimeException.class)
377 @Test(expectedExceptions=DateTimeException.class)
382 @Test(expectedExceptions=DateTimeException.class)
[all …]
DTCKClock_Tick.java122 @Test(expectedExceptions = ArithmeticException.class)
127 @Test(expectedExceptions = IllegalArgumentException.class)
132 @Test(expectedExceptions = IllegalArgumentException.class)
137 @Test(expectedExceptions = IllegalArgumentException.class)
142 @Test(expectedExceptions = IllegalArgumentException.class)
147 @Test(expectedExceptions = IllegalArgumentException.class)
152 @Test(expectedExceptions = NullPointerException.class)
157 @Test(expectedExceptions = NullPointerException.class)
169 @Test(expectedExceptions = NullPointerException.class)
182 @Test(expectedExceptions = NullPointerException.class)
[all …]
DTCKPeriod.java194 @Test(expectedExceptions = ArithmeticException.class)
217 @Test(expectedExceptions = DateTimeException.class)
247 @Test(expectedExceptions = DateTimeException.class)
252 @Test(expectedExceptions = DateTimeException.class)
257 @Test(expectedExceptions = NullPointerException.class)
420 @Test(dataProvider="parseFailure", expectedExceptions=DateTimeParseException.class)
430 @Test(expectedExceptions=NullPointerException.class)
534 @Test(expectedExceptions=NullPointerException.class)
539 @Test(expectedExceptions=NullPointerException.class)
638 @Test(expectedExceptions = DateTimeException.class)
[all …]
DTCKDuration.java161 @Test(expectedExceptions=ArithmeticException.class)
255 @Test(expectedExceptions=ArithmeticException.class)
260 @Test(expectedExceptions=ArithmeticException.class)
289 @Test(expectedExceptions=ArithmeticException.class)
294 @Test(expectedExceptions=ArithmeticException.class)
323 @Test(expectedExceptions=ArithmeticException.class)
328 @Test(expectedExceptions=ArithmeticException.class)
415 @Test(dataProvider="OfTemporalUnitOutOfRange", expectedExceptions=ArithmeticException.class)
420 @Test(expectedExceptions=DateTimeException.class)
425 @Test(expectedExceptions=NullPointerException.class)
[all …]
DTCKZoneId.java131 @Test(expectedExceptions=UnsupportedOperationException.class)
178 @Test(expectedExceptions=DateTimeException.class)
184 @Test(expectedExceptions=ZoneRulesException.class)
354 @Test(dataProvider="prefixInvalid", expectedExceptions=java.lang.IllegalArgumentException.class)
361 @Test(expectedExceptions=java.lang.NullPointerException.class)
366 @Test(expectedExceptions=java.lang.NullPointerException.class)
430 @Test(dataProvider="offsetBasedInvalid", expectedExceptions=DateTimeException.class)
438 @Test(dataProvider="offsetBasedInvalid", expectedExceptions=DateTimeException.class)
443 @Test(dataProvider="offsetBasedInvalid", expectedExceptions=DateTimeException.class)
451 @Test(dataProvider="offsetBasedInvalid", expectedExceptions=DateTimeException.class)
[all …]
DTCKYearMonth.java188 @Test(expectedExceptions=NullPointerException.class)
220 @Test(expectedExceptions=NullPointerException.class)
232 @Test(expectedExceptions=DateTimeException.class)
237 @Test(expectedExceptions=DateTimeException.class)
242 @Test(expectedExceptions=NullPointerException.class)
254 @Test(expectedExceptions=DateTimeException.class)
259 @Test(expectedExceptions=DateTimeException.class)
264 @Test(expectedExceptions=DateTimeException.class)
269 @Test(expectedExceptions=DateTimeException.class)
280 @Test(expectedExceptions=DateTimeException.class)
[all …]
DTCKYear.java176 @Test(expectedExceptions=NullPointerException.class)
207 @Test(expectedExceptions=NullPointerException.class)
222 @Test(expectedExceptions=DateTimeException.class)
227 @Test(expectedExceptions=DateTimeException.class)
238 @Test(expectedExceptions=DateTimeException.class)
243 @Test(expectedExceptions=NullPointerException.class)
316 @Test(dataProvider="badParseData", expectedExceptions=DateTimeParseException.class)
328 @Test(expectedExceptions=NullPointerException.class)
343 @Test(expectedExceptions=NullPointerException.class)
349 @Test(expectedExceptions=NullPointerException.class)
[all …]
/libcore/ojluni/src/test/java/util/List/
DListFactories.java157 @Test(dataProvider="all", expectedExceptions=UnsupportedOperationException.class)
162 @Test(dataProvider="all", expectedExceptions=UnsupportedOperationException.class)
167 @Test(dataProvider="nonempty", expectedExceptions=UnsupportedOperationException.class)
172 @Test(dataProvider="nonempty", expectedExceptions=UnsupportedOperationException.class)
182 @Test(expectedExceptions=NullPointerException.class)
187 @Test(expectedExceptions=NullPointerException.class)
192 @Test(expectedExceptions=NullPointerException.class)
197 @Test(expectedExceptions=NullPointerException.class)
202 @Test(expectedExceptions=NullPointerException.class)
207 @Test(expectedExceptions=NullPointerException.class)
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatterBuilder.java161 @Test(expectedExceptions=NullPointerException.class)
174 @Test(expectedExceptions=NullPointerException.class)
179 @Test(expectedExceptions=IllegalArgumentException.class)
184 @Test(expectedExceptions=IllegalArgumentException.class)
197 @Test(expectedExceptions=NullPointerException.class)
202 @Test(expectedExceptions=IllegalArgumentException.class)
207 @Test(expectedExceptions=IllegalArgumentException.class)
212 @Test(expectedExceptions=IllegalArgumentException.class)
217 @Test(expectedExceptions=IllegalArgumentException.class)
222 @Test(expectedExceptions=IllegalArgumentException.class)
[all …]
/libcore/ojluni/src/test/java/math/BigDecimal/
DConstructor.java37 @Test(expectedExceptions=NumberFormatException.class)
42 @Test(expectedExceptions=NumberFormatException.class)
47 @Test(expectedExceptions=NumberFormatException.class)
52 @Test(expectedExceptions=NumberFormatException.class)
67 @Test(expectedExceptions=NumberFormatException.class)
/libcore/ojluni/src/test/java/io/Reader/
DNullReader.java115 @Test(groups = "closed", expectedExceptions = IOException.class)
120 @Test(groups = "closed", expectedExceptions = IOException.class)
125 @Test(groups = "closed", expectedExceptions = IOException.class)
131 @Test(groups = "closed", expectedExceptions = IOException.class)
137 @Test(groups = "closed", expectedExceptions = IOException.class)
142 @Test(groups = "closed", expectedExceptions = IOException.class)
147 @Test(groups = "closed", expectedExceptions = IOException.class)
/libcore/ojluni/src/test/java/net/InetAddress/
DB6296240.java41 BitSet expectedExceptions = new BitSet(malformedIPv4s.length); in testB6296240() local
42 expectedExceptions.clear(); in testB6296240()
48 expectedExceptions.set(i); in testB6296240()
52 Assert.assertEquals(expectedExceptions.cardinality(), malformedIPv4s.length); in testB6296240()
/libcore/ojluni/src/test/java/text/Format/DateFormat/
DSimpleDateFormatPatternTest.java161 expectedExceptions = IllegalArgumentException.class)
170 expectedExceptions = IllegalArgumentException.class)
179 expectedExceptions = IllegalArgumentException.class)
188 expectedExceptions = IllegalArgumentException.class)
196 @Test(dataProvider = "invalidPat", expectedExceptions = IllegalArgumentException.class)
208 expectedExceptions = NullPointerException.class)
216 expectedExceptions = NullPointerException.class)
224 expectedExceptions = NullPointerException.class)
232 expectedExceptions = NullPointerException.class)
/libcore/ojluni/src/test/java/math/BigInteger/
DLargeValueExceptions.java84 @Test(expectedExceptions=ArithmeticException.class,enabled=false)
93 @Test(expectedExceptions=ArithmeticException.class,enabled=false)
129 @Test(expectedExceptions=ArithmeticException.class,enabled=false)
147 @Test(expectedExceptions=ArithmeticException.class,enabled=false)
164 @Test(expectedExceptions=ArithmeticException.class)
169 @Test(expectedExceptions=ArithmeticException.class)
177 @Test(expectedExceptions=ArithmeticException.class)
185 @Test(expectedExceptions=ArithmeticException.class,enabled=false)
/libcore/ojluni/src/test/java/lang/invoke/
DArrayLengthTest.java65 @Test(dataProvider = "arrayClasses", expectedExceptions = NullPointerException.class)
71 @Test(expectedExceptions = IllegalArgumentException.class)
76 @Test(expectedExceptions = NullPointerException.class)
81 @Test(expectedExceptions = NullPointerException.class)
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeValueRange.java114 @Test(expectedExceptions = IllegalArgumentException.class)
132 @Test(expectedExceptions = IllegalArgumentException.class)
137 @Test(expectedExceptions = IllegalArgumentException.class)
142 @Test(expectedExceptions = IllegalArgumentException.class)
195 @Test(dataProvider="invalid", expectedExceptions=IllegalArgumentException.class)
244 @Test(dataProvider="valid", expectedExceptions = DateTimeException.class)
250 @Test(dataProvider="valid", expectedExceptions = DateTimeException.class)
256 @Test(expectedExceptions = DateTimeException.class)
262 @Test(expectedExceptions = DateTimeException.class)
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestReflection.java57 @Test(dataProvider = "accessModesProvider", expectedExceptions = IllegalArgumentException.class)
67 …@Test(dataProvider = "accessModesProvider", expectedExceptions = UnsupportedOperationException.cla…
80 @Test(dataProvider = "accessModesProvider", expectedExceptions = IllegalArgumentException.class)
94 @Test(dataProvider = "accessModesProvider", expectedExceptions = IllegalArgumentException.class)
106 @Test(dataProvider = "accessModesProvider", expectedExceptions = IllegalArgumentException.class)
/libcore/ojluni/src/test/java/lang/invoke/MethodHandles/
DTestTableSwitch.java192 @Test(expectedExceptions = NullPointerException.class)
197 @Test(expectedExceptions = NullPointerException.class)
203 @Test(expectedExceptions = NullPointerException.class)
208 @Test(expectedExceptions = IllegalArgumentException.class,
214 @Test(expectedExceptions = IllegalArgumentException.class,
221 @Test(expectedExceptions = IllegalArgumentException.class,
228 @Test(expectedExceptions = IllegalArgumentException.class,

1234