- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 283 for 42 (0.02 seconds)
-
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
byte[] dest = new byte[4]; HashCode.fromInt(42).writeBytesTo(dest, 0, 4); assertThat(dest).isEqualTo(HashCode.fromInt(42).asBytes()); } public void testLongWriteBytesTo() { byte[] dest = new byte[8]; HashCode.fromLong(42).writeBytesTo(dest, 0, 8); assertThat(dest).isEqualTo(HashCode.fromLong(42).asBytes()); } private static final HashCode HASH_ABCD =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/InternersTest.java
Interner<String> pool = Interners.newStrongInterner(); assertThrows(NullPointerException.class, () -> pool.intern(null)); } public void testStrong_builder() { int concurrencyLevel = 42; Interner<Object> interner = Interners.newBuilder().strong().concurrencyLevel(concurrencyLevel).build(); InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 4.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/OptionalTest.java
assertEquals(Optional.of("a"), Optional.of("a").transform(Functions.identity())); } public void testTransform_presentToString() { assertEquals(Optional.of("42"), Optional.of(42).transform(Functions.toStringFunction())); } public void testTransform_present_functionReturnsNull() { assertThrows(NullPointerException.class, () -> Optional.of("a").transform(input -> null)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 10.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/LogStreamTest.java
logStream.printf("formatted %d%n", 42); logStream.flush(); String output = testOutput.toString(); assertTrue(output.contains("test")); assertTrue(output.contains("123")); assertTrue(output.contains("true")); assertTrue(output.contains("line")); assertTrue(output.contains("formatted 42")); } @Test void testDefaultLevel() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/OptionalUtilTest.java
} @Test public void test_ofNullable_withInteger() { Integer testValue = 42; OptionalEntity<Integer> result = OptionalUtil.ofNullable(testValue); assertNotNull(result); assertTrue(result.isPresent()); assertEquals(Integer.valueOf(42), result.get()); } @Test public void test_ofNullable_withNullInteger() { Integer testValue = null;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 13.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
rawtypeToWildcard(MinMaxPriorityQueue.maximumSize(42)).create(); assertEquals(11, queue.capacity()); assertEquals(42, queue.maximumSize); checkNatural(queue); } public void testCreation_comparator_maximumSize() { MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.orderedBy(SOME_COMPARATOR).maximumSize(42).create(); assertEquals(11, queue.capacity());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 36.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
assertTrue(future.set(42)); // Later attempts to set the future should return false. assertFalse(future.set(23)); assertFalse(future.setException(new Exception("bar"))); assertFalse(future.setFuture(SettableFuture.create())); // Check that the future has been set properly. assertTrue(future.isDone()); assertFalse(future.isCancelled()); assertEquals(42, (int) future.get()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
*/ @Test void encodeWithSpiedBufferCallsEncMethod() throws NdrException { NdrShort ns = new NdrShort(42); NdrBuffer spy = spy(new NdrBuffer(new byte[10], 0)); ns.encode(spy); // NdrShort passes its value (already masked to 0xFF) to enc_ndr_short verify(spy).enc_ndr_short(42); } /** * Verify that decode invokes NdrBuffer.dec_ndr_short. */ @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
assertTrue(future.set(42)); // Later attempts to set the future should return false. assertFalse(future.set(23)); assertFalse(future.setException(new Exception("bar"))); assertFalse(future.setFuture(SettableFuture.create())); // Check that the future has been set properly. assertTrue(future.isDone()); assertFalse(future.isCancelled()); assertEquals(42, (int) future.get()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.4K bytes - Click Count (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RemoteSnapshotMetadataTest.java
RemoteSnapshotMetadata metadata = new RemoteSnapshotMetadata(new DefaultArtifact("a:b:1-SNAPSHOT"), new Date(), 42); metadata.merge(new Metadata()); int buildNumber = metadata.metadata.getVersioning().getSnapshot().getBuildNumber(); assertEquals(42, buildNumber); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3.5K bytes - Click Count (0)