- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 122 for 42 (0.31 sec)
-
guava-tests/test/com/google/common/base/FunctionsTest.java
Function<String, @Nullable Integer> function = Functions.forMap(map, 42); assertEquals(1, function.apply("One").intValue()); assertEquals(42, function.apply("Two").intValue()); assertEquals(3, function.apply("Three").intValue()); assertNull(function.apply("Null")); new EqualsTester() .addEqualityGroup(function, Functions.forMap(map, 42)) .addEqualityGroup(Functions.forMap(map))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0) -
docs/en/docs/advanced/templates.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3.5K bytes - Viewed (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() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/OptionalUtilTest.java
assertEquals("", result.get()); } 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()); } public void test_ofNullable_withNullInteger() { Integer testValue = null;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
response.b[response.off] = 42; // Return byte value 42 } return null; } }).when(smbFile).send(any(SmbComReadAndX.class), any(SmbComReadAndXResponse.class)); int result = smbRandomAccessFile.read(); assertEquals(42, result); assertEquals(1, smbRandomAccessFile.getFilePointer()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (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. */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
void testWriteParameterWordsZeroUTime() { SmbComClose close = new SmbComClose(42, 0L); byte[] buffer = new byte[6]; close.writeParameterWordsWireFormat(buffer, 0); // first two bytes encode fid 42 assertEquals((byte) 42, buffer[0]); assertEquals((byte) 0, buffer[1]); // remaining 4 bytes should all be 0xFF according to writeUTime
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
Function<String, @Nullable Integer> function = Functions.forMap(map, 42); assertEquals(1, function.apply("One").intValue()); assertEquals(42, function.apply("Two").intValue()); assertEquals(3, function.apply("Three").intValue()); assertNull(function.apply("Null")); new EqualsTester() .addEqualityGroup(function, Functions.forMap(map, 42)) .addEqualityGroup(Functions.forMap(map))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0) -
android/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());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java
// Total bytes written: 8+8+8+8+2+6=40 // But writeInt8 at position 34 needs to access position 34+7=41 // So we need at least 42 bytes in the array byte[] dst = new byte[42]; // When int result = trans2SetFileInformation.writeDataWireFormat(dst, 0); // Then assertEquals(40, result); // Returns 40 bytes written }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0)