D | SerializingExecutorTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 11 * distributed under the License is distributed on an "AS IS" BASIS, 38 private List<Integer> runs = new ArrayList<>(); field in SerializingExecutorTest 49 runs.add(val); in run() 75 // Ensure that the runnable enqueued was actually removed on the failed execute above. in resumable() 78 assertThat(runs).containsExactly(2); in resumable() 85 assertEquals(Collections.<Integer>emptyList(), runs); in serial() local 87 assertEquals(Arrays.asList(1), runs); in serial() 90 assertEquals(Arrays.asList(1), runs); in serial() 92 assertEquals(Arrays.asList(1, 2), runs); in serial() [all …]
|