- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 156 for IsTrue (0.74 seconds)
-
android/guava-tests/test/com/google/common/graph/EndpointPairTest.java
// Test for EndpointPair class @Test public void testOrderedEndpointPair() { EndpointPair<String> ordered = EndpointPair.ordered("source", "target"); assertThat(ordered.isOrdered()).isTrue(); assertThat(ordered).containsExactly("source", "target").inOrder(); assertThat(ordered.source()).isEqualTo("source"); assertThat(ordered.target()).isEqualTo("target");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 9.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/EndpointPairTest.java
// Test for EndpointPair class @Test public void testOrderedEndpointPair() { EndpointPair<String> ordered = EndpointPair.ordered("source", "target"); assertThat(ordered.isOrdered()).isTrue(); assertThat(ordered).containsExactly("source", "target").inOrder(); assertThat(ordered.source()).isEqualTo("source"); assertThat(ordered.target()).isEqualTo("target");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 9.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
Future<?> possiblyIgnoredError1 = serializer.submitAsync(secondCallable, directExecutor()); assertThat(firstCallable.called).isTrue(); assertThat(secondCallable.called).isFalse(); firstFuture.set(null); assertThat(secondCallable.called).isTrue(); } public void testCancellationDoesNotViolateSerialization() { @SuppressWarnings({"unused", "nullness"})
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 13.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/CompactHashMapTest.java
assertThat(map).containsEntry(1, "one"); } public void testAllocArraysDefault() { CompactHashMap<Integer, String> map = CompactHashMap.create(); assertThat(map.needsAllocArrays()).isTrue(); assertThat(map.entries).isNull(); assertThat(map.keys).isNull(); assertThat(map.values).isNull(); map.put(1, "1"); assertThat(map.needsAllocArrays()).isFalse();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 5.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java
closeMethod = wrapper.getClass().getMethod("close"); } catch (NoSuchMethodException e) { assertThat(isAndroid() || isBeforeJava19()).isTrue(); return; // close() doesn't exist, so we can't test it. } closeMethod.invoke(wrapper); assertThat(delegate.isTerminated()).isTrue(); } private static boolean isAndroid() { return System.getProperty("java.runtime.name", "").contains("Android"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 2.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
// returned by SequentialExecutor. Clear the bit while checking so that the test doesn't hose // JUnit or some other test case. assertThat(Thread.interrupted()).isTrue(); } public void testInterrupt_doesNotInterruptSubsequentTask() throws Exception { // Run a task that interrupts its thread (i.e. this thread). e.execute(() -> Thread.currentThread().interrupt());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 10.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java
} } public void testAllocArraysDefault() { CompactLinkedHashMap<Integer, String> map = CompactLinkedHashMap.create(); assertThat(map.needsAllocArrays()).isTrue(); assertThat(map.entries).isNull(); assertThat(map.keys).isNull(); assertThat(map.values).isNull(); assertThat(map.links).isNull(); map.put(1, Integer.toString(1));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 6.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
Future<?> possiblyIgnoredError = executor.submit(task); } awaitUnchecked(barrier); assertThat(future.isDone()).isTrue(); // inspect state and ensure it is correct! // asserts that all get calling threads received the same value Object result = Iterables.getOnlyElement(finalResults);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 45.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
.that(step2.statusFuture().isCancelled()) .isTrue(); // Its closeable is closed. assertClosed(closeable2); // Step 3 was cancelled before it began assertWithMessage("step3.statusFuture().isCancelled()") .that(step3.statusFuture().isCancelled()) .isTrue(); // Its closeable is still open. assertStillOpen(closeable3);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/CompactLinkedHashSetTest.java
.createTestSuite()); return suite; } public void testAllocArraysDefault() { CompactHashSet<Integer> set = CompactHashSet.create(); assertThat(set.needsAllocArrays()).isTrue(); assertThat(set.elements).isNull(); set.add(1); assertThat(set.needsAllocArrays()).isFalse(); assertThat(set.elements).hasLength(CompactHashing.DEFAULT_SIZE); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 25 16:19:30 GMT 2025 - 3.4K bytes - Click Count (0)