function Test() { this.a = 'a'; } Test.prototype.b = 'b'; var test = new Test(); test.a; // "a", own property test.b; // "b", inherited property
@Override public int compareTo(DontCompareMe o) { throw new AssertionFailedError(); } }
@Override protected void doStop() { fail(); } }
Throwable getThrowable() { assertNotNull(throwable); return throwable; } }
@Override protected void shutDown() throws Exception { assertTrue(startUpCalled); assertFalse(shutDownCalled); shutDownCalled = true; if (shutDownException != null) { throw shutDownException; } }
@Override public void run() { assertEquals( "tearDownTwo should have been run before tearDownOne", false, tearDownOne.ran); } };
Object getResult() { if (throwable != null) { throw (AssertionFailedError) new AssertionFailedError().initCause(throwable); } return result; }
@Override protected void doStart() { assertFalse(doStartCalled); doStartCalled = true; }
@Override protected T computeNext(T previous) { throw new AssertionFailedError(); } };
@Override protected void startUp() throws Exception { assertEquals(0, startupCalled); assertEquals(0, runCalled); assertEquals(0, shutdownCalled); startupCalled++; }
static AssertionFailedError failureWithCause(Throwable cause, String message) { AssertionFailedError failure = new AssertionFailedError(message); failure.initCause(cause); return failure; }
@Override protected void doStop() { fail(); } }
@Override public String toString() { throw new AssertionFailedError(); } };
@Override protected void run() throws Exception { assertEquals(1, startupCalled); assertEquals(0, runCalled); assertEquals(0, shutdownCalled); runCalled++; }
@Override public Iterator<Integer> iterator() { throw new AssertionFailedError("Don't iterate me!"); } };
@Override public boolean apply(Integer i) { throw new AssertionFailedError("This predicate should never have been evaluated"); } };
@Override public Iterator<Integer> iterator() { throw new AssertionFailedError("Don't iterate me!"); } };
@Override public boolean matches(char c) { throw new AssertionFailedError("You weren't supposed to actually invoke me!"); } };
@Override public ListenableFuture<Bar> apply(Foo unused) { throw new AssertionFailedError("Unexpeted call to apply."); } };
@Override public String toString() { throw new AssertionFailedError(); } };