Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 156 for parameterized (0.05 seconds)

  1. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

     */
    @ExtendWith(MockitoExtension.class)
    class SMBProtocolDowngradeExceptionTest {
    
        /**
         * Provides messages including edge cases (null and empty) for parameterized testing.
         */
        static Stream<Arguments> messages() {
            return Stream.of(Arguments.of((String) null), Arguments.of(""), Arguments.of("unexpected downgrade"));
        }
    
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/reflect/TypeCapture.java

    abstract class TypeCapture<T> {
    
      /** Returns the captured type. */
      final Type capture() {
        Type superclass = getClass().getGenericSuperclass();
        checkArgument(superclass instanceof ParameterizedType, "%s isn't parameterized", superclass);
        return ((ParameterizedType) superclass).getActualTypeArguments()[0];
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/BufferCacheImplTest.java

            assertEquals(3, third.length, "Allocated buffer length matches configured maximum size");
        }
    
        // Parameterized: exercise small variations of cache size for a simple reuse cycle
        @ParameterizedTest
        @ValueSource(ints = { 1, 2 })
        @DisplayName("Parameterized: buffer reuse works for various small cache sizes")
        void reuseWorksForVariousCacheSizes(int cacheSize) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/spnego/NegTokenInitTest.java

        private static final String SPNEGO_OID_STR = SpnegoConstants.SPNEGO_MECHANISM;
    
        // Helper to build a SPNEGO NegTokenInit as per NegTokenInit#toByteArray but parameterized for tests
        private static byte[] buildInitToken(ASN1ObjectIdentifier[] mechs, Integer flags, byte[] mechToken, byte[] mic, boolean micInTag4,
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/DosFileFilterTest.java

            new DosFileFilter("*.*", SmbFile.ATTR_ARCHIVE);
            new DosFileFilter("?", SmbFile.ATTR_DIRECTORY);
            new DosFileFilter("file.txt", SmbFile.ATTR_READONLY | SmbFile.ATTR_HIDDEN);
        }
    
        /**
         * Parameterized test for the {@link DosFileFilter#accept(SmbFile)} method.
         * This test covers various combinations of file attributes and filter attributes
         * to ensure the bitwise logic is correctly implemented.
         *
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/beans/impl/FieldDescImpl.java

        protected final Field field;
    
        /** The field name */
        protected final String fieldName;
    
        /** The type of the field */
        protected final Class<?> fieldType;
    
        /** Information about the parameterized type */
        protected final ParameterizedClassDesc parameterizedClassDesc;
    
        /**
         * Constructs an instance.
         *
         * @param beanDesc
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            assertTrue(result.isEmpty(), "List should be cleared");
        }
    
        // Parameterized test to exercise SMB2 with different recursive and filter values
        @ParameterizedTest(name = "SMB2 param: recursive={0}, filter={1}")
        @CsvSource({ "true, 0", "false, -1" })
        @DisplayName("watch() SMB2 parameterized branches execute without error")
        void watch_smb2_parameterized(boolean recursive, int filter) throws Exception {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  8. guava/src/com/google/common/reflect/Types.java

            return subtypeOf(newArrayType(upperBounds[0]));
          }
        }
        return JavaVersion.CURRENT.newArrayType(componentType);
      }
    
      /**
       * Returns a type where {@code rawType} is parameterized by {@code arguments} and is owned by
       * {@code ownerType}.
       */
      static ParameterizedType newParameterizedTypeWithOwner(
          @Nullable Type ownerType, Class<?> rawType, Type... arguments) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 31 19:34:24 GMT 2025
    - 24.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

        }
    
        @Test
        @DisplayName("Test default constructor")
        void testDefaultConstructor() {
            assertNotNull(fileRenameInfo);
        }
    
        @Test
        @DisplayName("Test parameterized constructor")
        void testParameterizedConstructor() {
            String fileName = "test.txt";
            boolean replaceIfExists = true;
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

            Assertions.assertEquals(1_650_000_000_000L, info.getLastAccessTime(), "last access should match");
            Assertions.assertEquals(42L, info.getSize(), "size should match");
        }
    
        // --- Parameterized: edge and boundary values across getters ---
        @ParameterizedTest(name = "attributes={0}, c={1}, w={2}, a={3}, size={4}")
        @MethodSource("valueProvider")
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.8K bytes
    - Click Count (0)
Back to Top