- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 412 for 50 (0.01 sec)
-
android/guava-tests/test/com/google/common/base/StringsTest.java
} // TODO: could remove if we got NPT working in GWT somehow public void testPadStart_null() { assertThrows(NullPointerException.class, () -> Strings.padStart(null, 5, '0')); } public void testPadEnd_noPadding() { assertSame("", Strings.padEnd("", 0, '-')); assertSame("x", Strings.padEnd("x", 0, '-')); assertSame("x", Strings.padEnd("x", 1, '-'));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 27 17:53:41 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java
/** * Unit test for {@link FakeTimeLimiter}. * * @author Jens Nyman */ @NullUnmarked public class FakeTimeLimiterTest extends TestCase { private static final int DELAY_MS = 50; private static final String RETURN_VALUE = "abc"; private TimeLimiter timeLimiter; @Override protected void setUp() throws Exception { super.setUp(); timeLimiter = new FakeTimeLimiter(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/DoubleConversionUtilTest.java
} /** * @throws Exception */ public void testToPrimitiveDouble() throws Exception { assertEquals(1000.5, DoubleConversionUtil.toPrimitiveDouble("1,000.5"), 0); } /** * @throws Exception */ public void testToPrimitiveDoubleForEmptyString() throws Exception { assertEquals(0, DoubleConversionUtil.toPrimitiveDouble(""), 0); }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/FloatConversionUtilTest.java
} /** * @throws Exception */ public void testToPrimitiveFloat() throws Exception { assertEquals(1000.5, FloatConversionUtil.toPrimitiveFloat("1,000.5"), 0); } /** * @throws Exception */ public void testToPrimitiveFloatForEmptyString() throws Exception { assertEquals(0, FloatConversionUtil.toPrimitiveFloat(""), 0); }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java
/** * Unit test for {@link FakeTimeLimiter}. * * @author Jens Nyman */ @NullUnmarked public class FakeTimeLimiterTest extends TestCase { private static final int DELAY_MS = 50; private static final String RETURN_VALUE = "abc"; private TimeLimiter timeLimiter; @Override protected void setUp() throws Exception { super.setUp(); timeLimiter = new FakeTimeLimiter(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
request.setFileInfoClass((byte) 0x08); Encodable mockInputBuffer = mock(Encodable.class); when(mockInputBuffer.encode(any(byte[].class), anyInt())).thenReturn(50); when(mockInputBuffer.size()).thenReturn(50); try { Field inputBufferField = Smb2QueryInfoRequest.class.getDeclaredField("inputBuffer"); inputBufferField.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
mockTransport.sessionKey = 0x12345678; mockTransport.capabilities = SmbConstants.CAP_UNICODE | SmbConstants.CAP_NT_SMBS; mockTransport.snd_buf_size = 16644; mockTransport.maxMpxCount = 50; // Configure mock session mockSession.transport = mockTransport; // Configure authentication - set fields directly since NtlmPasswordAuthentication is final mockAuth.username = "testuser";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt
factory.close() peer.close() } @Test fun connectionsEvictedWhenIdleLongEnough() { val pool = factory.newConnectionPool() val c1 = factory.newConnection(pool, routeA1, 50L) // Running at time 50, the pool returns that nothing can be evicted until time 150. assertThat(pool.closeConnections(50L)).isEqualTo(100L) assertThat(pool.connectionCount()).isEqualTo(1) assertThat(c1.socket().isClosed).isFalse()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 12.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java
FsctlPipeWaitRequest request = new FsctlPipeWaitRequest(pipeName, timeout); byte[] nameBytes = pipeName.getBytes(StandardCharsets.UTF_16LE); byte[] buffer = new byte[200]; int offset = 50; // Execute int bytesEncoded = request.encode(buffer, offset); // Verify assertEquals(14 + nameBytes.length, bytesEncoded); // Check timeout value at offset
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
@DisplayName("Should return 0 for writeSetupWireFormat with offset") void testWriteSetupWireFormatWithOffset() { byte[] dst = new byte[100]; int result = response.writeSetupWireFormat(dst, 50); assertEquals(0, result); } @Test @DisplayName("Should return 0 for writeParametersWireFormat") void testWriteParametersWireFormat() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0)