- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 227 for 42 (0.01 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/hash/HashingTest.java
} public void testHashIntReverseBytesVsHashBytesIntsToByteArray() { int input = 42; assertEquals( Hashing.md5().hashBytes(Ints.toByteArray(input)), Hashing.md5().hashInt(Integer.reverseBytes(input))); } public void testHashIntVsForLoop() { int input = 42; HashCode expected = Hashing.md5().hashInt(input); Hasher hasher = Hashing.md5().newHasher();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 26.7K bytes - Click Count (2) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThrows(IllegalStateException.class, () -> builder.build(identityLoader())); } @J2ktIncompatible @GwtIncompatible // weigher public void testWeigher_withMaximumSize() { assertThrows( IllegalStateException.class, () -> CacheBuilder.newBuilder().weigher(constantWeigher(42)).maximumSize(1)); assertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 25.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThrows(IllegalStateException.class, () -> builder.build(identityLoader())); } @J2ktIncompatible @GwtIncompatible // weigher public void testWeigher_withMaximumSize() { assertThrows( IllegalStateException.class, () -> CacheBuilder.newBuilder().weigher(constantWeigher(42)).maximumSize(1)); assertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 25.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
Integer newValue = map.getInstance(Integer.class); assertEquals(7, (int) newValue); assertEquals(7, (int) map.getInstance(TypeToken.of(Integer.class))); // Won't compile: map.putInstance(Double.class, new Long(42)); } public void testNull() { assertThrows( NullPointerException.class, () -> map.putInstance((TypeToken<Integer>) null, Integer.valueOf(1))); map.putInstance(Integer.class, null);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 8.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
ByteSource source = out.asByteSource(); out.write(data); assertThat(source.read()).isEqualTo(data); out.close(); assertThrows(IOException.class, () -> out.write(42)); // Verify that write had no effect assertThat(source.read()).isEqualTo(data); out.reset(); } public void testReset() throws Exception { byte[] data = newPreFilledByteArray(100);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 04:04:26 GMT 2026 - 8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
InputStream mockIn = mock(InputStream.class); when(mockIn.available()).thenReturn(42); SocketInputStream sis = new SocketInputStream(mockIn); // When no message is buffered, should return underlying stream's available assertEquals(42, sis.available()); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java
translatedName.name.length = 16; translatedName.name.maximum_length = 32; translatedName.name.buffer = new short[] { 'U', 's', 'e', 'r', 'N', 'a', 'm', 'e' }; translatedName.sid_index = 42; // Encode to buffer byte[] buffer = new byte[1024]; NdrBuffer encodeBuffer = new NdrBuffer(buffer, 0); translatedName.encode(encodeBuffer); // Decode from bufferCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
} @SuppressWarnings("ReturnValueIgnored") public void testMaximumWeight_withWeigher() { CacheBuilder<Object, Object> builder = CacheBuilder.from(parse("maximumWeight=9000")); builder.weigher(constantWeigher(42)).build(CacheLoader.from(Suppliers.ofInstance(null))); } @SuppressWarnings("ReturnValueIgnored") public void testMaximumWeight_withoutWeigher() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 20.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
when(ioctlResp.getOutputLength()).thenReturn(42); byte[] in = new byte[128]; byte[] out = new byte[256]; // Act int n = handle.sendrecv(out, 1, 10, in, 128); // Assert assertEquals(42, n); ArgumentCaptor<Smb2IoctlRequest> cap = ArgumentCaptor.forClass(Smb2IoctlRequest.class);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 16.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/LogNotificationJobTest.java
events.add(new LogNotificationEvent(timestamp, "ERROR", "org.codelibs.fess.TestClass", "Something went wrong", "java.lang.NullPointerException: null\n\tat org.codelibs.fess.TestClass.doSomething(TestClass.java:42)")); String details = testableJob.testFormatDetails(events); assertNotNull(details); assertTrue(details.contains("Total: 1 event(s)"));
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 10.5K bytes - Click Count (0)