Searched refs:mockRunnable (Results 1 – 2 of 2) sorted by relevance
100 IRunUtil.IRunnableResult mockRunnable = EasyMock.createStrictMock( in testRunTimed() local102 EasyMock.expect(mockRunnable.run()).andReturn(Boolean.TRUE); in testRunTimed()103 EasyMock.replay(mockRunnable); in testRunTimed()105 mRunUtil.runTimed(SHORT_TIMEOUT_MS, mockRunnable, true)); in testRunTimed()112 IRunUtil.IRunnableResult mockRunnable = EasyMock.createStrictMock( in testRunTimed_failed() local114 EasyMock.expect(mockRunnable.run()).andReturn(Boolean.FALSE); in testRunTimed_failed()115 EasyMock.replay(mockRunnable); in testRunTimed_failed()117 mRunUtil.runTimed(SHORT_TIMEOUT_MS, mockRunnable, true)); in testRunTimed_failed()124 IRunUtil.IRunnableResult mockRunnable = EasyMock.createStrictMock( in testRunTimed_exception() local126 EasyMock.expect(mockRunnable.run()).andThrow(new RuntimeException()); in testRunTimed_exception()[all …]
51 MyRunnable mockRunnable = new MyRunnable() { in testRunTimed_timeout() local63 mockRunnable, true)); in testRunTimed_timeout()64 assertTrue(mockRunnable.mCanceled); in testRunTimed_timeout()73 IRunUtil.IRunnableResult mockRunnable = new IRunUtil.IRunnableResult() { in testRunTimedRetry() local87 mockRunnable)); in testRunTimedRetry()