HomeSort by relevance Sort by last modified time
    Searched full:expectedexception (Results 1 - 20 of 20) sorted by null

  /external/junit/src/org/junit/rules/
ExpectedException.java 14 * The ExpectedException Rule allows in-test specification of expected exception
21 * public ExpectedException thrown= ExpectedException.none();
44 public class ExpectedException implements TestRule {
49 public static ExpectedException none() {
50 return new ExpectedException();
55 private ExpectedException() {
MethodRule.java 18 * <li>{@link ExpectedException}: make flexible assertions about thrown exceptions</li>
TestRule.java 34 * <li>{@link ExpectedException}: make flexible assertions about thrown exceptions</li>
  /dalvik/tests/064-field-access/src/
Main.java 46 * The "expectedException" must match the class of the exception thrown,
52 Class expectedException) {
89 if (expectedException != null) {
92 + expectedException);
96 if (expectedException == null) {
101 if (!expectedException.equals(ex.getClass())) {
103 + expectedException.getName() + ", got "
284 Class expectedException) {
321 if (expectedException != null) {
324 + expectedException);
    [all...]
  /cts/tests/tests/database/src/android/database/sqlite/cts/
SQLiteStatementTest.java 267 SQLiteDoneException expectedException = null;
271 expectedException = ex;
278 assertNotNull("Should have thrown SQLiteDoneException", expectedException);
288 SQLiteDoneException expectedException = null;
292 expectedException = ex;
299 assertNotNull("Should have thrown SQLiteDoneException", expectedException);
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
RewriteRuleXxxxStreamFixture.cs 94 [ExpectedException(typeof(RewriteEmptyStreamException), "RewriteRuleTokenStream test")]
112 [ExpectedException(typeof(RewriteEmptyStreamException),
131 [ExpectedException(typeof(RewriteEmptyStreamException), "RewriteRuleNodeStream test")]
149 [ExpectedException(typeof(RewriteEmptyStreamException), "RewriteRuleTokenStream test")]
158 [ExpectedException(typeof(RewriteEmptyStreamException),
168 [ExpectedException(typeof(RewriteEmptyStreamException), "RewriteRuleNodeStream test")]
177 [ExpectedException(typeof(RewriteEmptyStreamException), "RewriteRuleTokenStream test")]
189 [ExpectedException(typeof(RewriteCardinalityException), "RewriteRuleTokenStream test")]
252 [ExpectedException(typeof(RewriteCardinalityException),
308 [ExpectedException(typeof(RewriteCardinalityException), "RewriteRuleNodeStream test")
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
ECFieldF2m_ImplTest.java 85 * @param expectedException
90 final Exception expectedException) {
94 this.x = expectedException;
  /external/webkit/LayoutTests/fast/dom/Geolocation/script-tests/
argument-types.js 13 function test(expression, expressionShouldThrow, expectedException) {
15 if (expectedException)
16 shouldThrow(expression, '(function() { return "' + expectedException + '"; })();');
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/reflect/
FieldTest.java 146 Class expectedException) {
178 if (expectedException != null) {
179 fail("expected exception " + expectedException.getName());
182 if (expectedException == null) {
186 + expectedException.getName() + " and got " + e, e
187 .getClass().equals(expectedException));
194 Class expectedException, Object value) {
225 if (expectedException != null) {
226 fail("expected exception " + expectedException.getName());
229 if (expectedException == null)
    [all...]
  /external/junit/src/org/junit/
ClassRule.java 21 * {@link org.junit.rules.ExpectedException},
  /external/objenesis/tck/test/org/objenesis/tck/
CandidateLoaderTest.java 95 catch(IOException expectedException) {
  /external/webkit/LayoutTests/fast/dom/DeviceMotion/script-tests/
optional-event-properties.js 9 function testException(expression, expectedException)
11 shouldThrow(expression, '(function() { return "' + expectedException + '"; })();');
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
ECFieldF2mTest.java 86 * @param expectedException
91 final Exception expectedException) {
95 this.x = expectedException;
  /libcore/luni/src/test/java/tests/api/java/lang/reflect/
FieldTest.java 255 Class expectedException) {
287 if (expectedException != null) {
288 fail("expected exception " + expectedException.getName());
291 if (expectedException == null) {
295 + expectedException.getName() + " and got " + e, e
296 .getClass().equals(expectedException));
303 Class expectedException, Object value) {
334 if (expectedException != null) {
335 fail("expected exception " + expectedException.getName()
339 if (expectedException == null)
    [all...]
  /libcore/luni/src/test/java/tests/security/spec/
ECFieldF2mTest.java 88 * @param expectedException
93 final Exception expectedException) {
97 this.x = expectedException;
  /external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime.Tests/
Antlr.Runtime.Tree.Tests.pas     [all...]
  /external/robolectric/lib/main/
junit-dep-4.8.2.jar 
  /libcore/luni/src/test/java/libcore/javax/net/ssl/
SSLSocketTest.java 559 final RuntimeException expectedException = new RuntimeException("expected");
577 throw expectedException;
586 assertSame(expectedException, test.actualException);
    [all...]
  /libcore/support/src/test/java/tests/resources/
junit4-4.3.1.jar 
  /prebuilts/tools/common/easymock-tools/
easymock-3.1-tests.jar 

Completed in 676 milliseconds