Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1041 - 1050 of 1,466 for assertEquals (0.79 sec)

  1. android/guava-tests/test/com/google/common/base/Utf8Test.java

      }
    
      // We can't use Character.isSurrogate(c) because of GWT.
    
      public void testEncodedLength_validStrings() {
        assertEquals(0, Utf8.encodedLength(""));
        assertEquals(11, Utf8.encodedLength("Hello world"));
        assertEquals(8, Utf8.encodedLength("Résumé"));
        assertEquals(
            461,
            Utf8.encodedLength(
                "威廉·莎士比亞(William Shakespeare,"
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java

            // Then
            DfFinalTimeZoneProvider provider = getDBFluteSystemTimeZoneProvider();
            if (provider != null) {
                TimeZone providedTimeZone = provider.provide();
                assertEquals(FessUserTimeZoneProcessProvider.centralTimeZone, providedTimeZone);
            } else {
                // Cannot test due to reflection access limitations
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            assertTrue(response instanceof ServerMessageBlock2);
        }
    
        @Test
        @DisplayName("Test OVERHEAD constant value")
        void testOverheadConstant() {
            assertEquals(72, Smb2QueryInfoResponse.OVERHEAD);
            assertEquals(Smb2Constants.SMB2_HEADER_LENGTH + 8, Smb2QueryInfoResponse.OVERHEAD);
        }
    
        @ParameterizedTest
        @CsvSource({ "1, 6", // SMB2_0_INFO_FILE, FILE_INTERNAL_INFO
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/spnego/NegTokenTargTest.java

            byte[] bytes = original.toByteArray();
            NegTokenTarg roundTrip = new NegTokenTarg(bytes);
    
            // Assert – all getters match the original values
            assertEquals(NegTokenTarg.ACCEPT_COMPLETED, roundTrip.getResult(), "result should roundtrip");
            assertEquals(mech, roundTrip.getMechanism(), "mechanism should roundtrip");
            assertArrayEquals(tokenArray, roundTrip.getMechanismToken(), "mechanism token should roundtrip");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/ServletRuntimeExceptionTest.java

            ServletRuntimeException runtimeException = new ServletRuntimeException(servletException);
    
            // Verify the exception chain
            assertNotNull(runtimeException);
            assertEquals(servletException, runtimeException.getCause());
            assertEquals(rootCause, servletException.getCause());
    
            // Verify messages in the chain
            assertTrue(runtimeException.getMessage().contains(ServletException.class.getName()));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/UniAddressTest.java

            assertEquals("192.0.2.1", ua.getHostAddress(), "should forward hostAddress to underlying InetAddress");
        }
    
        @Test
        void toStringDelegatesToUnderlyingAddress() {
            InetAddress dummy = mock(InetAddress.class);
            when(dummy.toString()).thenReturn("mockedInet");
            UniAddress ua = new UniAddress(dummy);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            assertEquals(ChannelState.FAILED, failedChannel.getState());
            verify(mockChannelManager).removeChannel(failedChannel);
        }
    
        @Test
        void testFailoverStateCreation() {
            ChannelFailover.FailoverState state = new ChannelFailover.FailoverState("test-channel");
    
            assertEquals("test-channel", state.getChannelId());
            assertEquals(0, state.getRetryCount());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/MsrpcQueryInformationPolicyTest.java

            // We can verify the state of the object after construction.
    
            // Verify ptype and flags are set correctly
            assertEquals(0, policy.getPtype(), "ptype should be 0");
            assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, policy.getFlags(),
                    "flags should be DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            when(nego.getTransactionBufferSize()).thenReturn(3333);
            when(nego.isSigningNegotiated()).thenReturn(true);
    
            assertEquals(1111, handle.getSendBufferSize());
            assertEquals(2222, handle.getReceiveBufferSize());
            assertEquals(3333, handle.getMaximumBufferSize());
            assertTrue(handle.areSignaturesActive());
    
            verify(session, times(4)).close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. regression-test/src/androidTest/java/okhttp/regression/IssueReproductionTest.java

    import org.junit.Test;
    import org.junit.runner.RunWith;
    
    import java.io.IOException;
    import java.security.cert.Certificate;
    import java.security.cert.X509Certificate;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertTrue;
    
    /**
     * Simple test adaptable to show a failure in older versions of OkHttp
     * or Android SDKs.
     */
    @RunWith(AndroidJUnit4.class)
    public class IssueReproductionTest {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 26 06:37:08 UTC 2021
    - 1.9K bytes
    - Viewed (0)
Back to top