Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 5,365 for KClass (0.03 sec)

  1. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

        public static Object convertNumber(final Class<?> type, final Object o) {
            if (type == Integer.class) {
                return IntegerConversionUtil.toInteger(o);
            } else if (type == BigDecimal.class) {
                return BigDecimalConversionUtil.toBigDecimal(o);
            } else if (type == Double.class) {
                return DoubleConversionUtil.toDouble(o);
            } else if (type == Long.class) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java

                    jakarta.validation.ConstraintValidator.class.isAssignableFrom(CustomSizeValidator.class));
        }
    
        public void test_methodsExist() {
            // Verify required methods exist
            try {
                CustomSizeValidator.class.getMethod("initialize", CustomSize.class);
                CustomSizeValidator.class.getMethod("isValid", CharSequence.class, ConstraintValidatorContext.class);
                assertTrue("Required methods exist", true);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/UniAddressTest.java

                mockAddress = mock(Address.class);
            }
    
            @Test
            void shouldReturnUnwrappedAddressWhenWrappedIsAddress() {
                when(mockAddress.unwrap(Address.class)).thenReturn(mockAddress);
                UniAddress uniAddress = new UniAddress(mockAddress);
                assertEquals(mockAddress, uniAddress.unwrap(Address.class));
                verify(mockAddress, times(1)).unwrap(Address.class);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

      override fun getSendBufferSize(): Int = delegate!!.sendBufferSize
    
      @Throws(SocketException::class)
      override fun getSoTimeout(): Int = delegate!!.soTimeout
    
      @Throws(SocketException::class)
      override fun getTcpNoDelay(): Boolean = delegate!!.tcpNoDelay
    
      @Throws(SocketException::class)
      override fun setKeepAlive(keepAlive: Boolean) {
        delegate!!.keepAlive = keepAlive
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            SmbTransportImpl mockTransport = mock(SmbTransportImpl.class);
            SmbTransportInternal internal = mock(SmbTransportInternal.class);
            SmbSessionInternal session = mock(SmbSessionInternal.class);
            SmbTreeInternal tree = mock(SmbTreeInternal.class);
    
            when(mockTransport.unwrap(SmbTransportInternal.class)).thenReturn(internal);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        setDefault(Integer.class, 1);
        setDefault(long.class, 1L);
        setDefault(Long.class, 1L);
        setDefault(float.class, 1F);
        setDefault(Float.class, 1F);
        setDefault(double.class, 1D);
        setDefault(Double.class, 1D);
        setDefault(Class.class, Class.class);
      }
    
      /**
       * Sets the default value for {@code type}. The default value isn't used in testing {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRootTest.java

            assertTrue("FessWebResourceRoot should extend StandardRoot", StandardRoot.class.isAssignableFrom(FessWebResourceRoot.class));
            assertTrue("FessWebResourceRoot should implement WebResourceRoot",
                    WebResourceRoot.class.isAssignableFrom(FessWebResourceRoot.class));
        }
    
        public void test_classStructure() {
            // Basic class structure tests that don't require complex mocking
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SessionSetupHandlerTest.java

            assertThrows(NoSuchMethodException.class, () -> SessionSetupHandler.class.getDeclaredConstructor());
        }
    
        @Test
        @DisplayName("Invalid: resolving class by null name throws NPE")
        void testClassForNameWithNull() {
            // Intent: demonstrate defensive behavior with null when resolving this type by name
            assertThrows(NullPointerException.class, () -> Class.forName(null));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/ServerResponseValidatorTest.java

        @Test
        public void testNullBuffer() throws Exception {
            assertThrows(SmbException.class, () -> {
                validator.validateBuffer(null, 100, 1024);
            });
        }
    
        @Test
        public void testBufferTooSmall() throws Exception {
            byte[] buffer = new byte[50];
            assertThrows(SmbException.class, () -> {
                validator.validateBuffer(buffer, 100, 1024);
            });
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/HMACT64Test.java

    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.MockedStatic;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    @ExtendWith(MockitoExtension.class)
    class HMACT64Test {
    
        private static final byte[] TEST_KEY = "testkey".getBytes();
        private static final byte[] LONG_TEST_KEY = "thisisalongtestkeythatislongerthan64bytesandshouldbetruncated".getBytes();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
Back to top