- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for parameterized (0.08 sec)
-
src/main/java/org/codelibs/core/lang/MethodUtil.java
} /** * Returns the element type of the parameterized collection declared as the method's argument type. * * @param method * The method. Cannot be {@literal null} * @param position * The position of the parameterized collection in the method's argument list * @return The element type of the parameterized collection */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/GenericsUtil.java
* </p> * <p> * If <code>type</code> is a parameterized type but has no direct type arguments, an empty array is returned. * This includes cases where the parameterized type contains nested types without type arguments. * </p> * <p> * If <code>type</code> is not a parameterized type, <code>null</code> is returned. * </p> * * @param type
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 23.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/FieldUtil.java
assertArgumentNotNull("field", field); return Modifier.isFinal(field.getModifiers()); } /** * Returns the element type of a parameterized collection field. * * @param field a field of a parameterized collection type (must not be {@literal null}) * @return the element type of the collection */ public static Class<?> getElementTypeOfCollection(final Field field) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
// Verify instance is created assertNotNull(fileInfo); assertEquals(FileInformation.FILE_ENDOFFILE_INFO, fileInfo.getFileInformationLevel()); } @Test @DisplayName("Test parameterized constructor with end of file value") void testParameterizedConstructor() { // Test with specific end of file value long endOfFile = 1024L;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryTest.java
return length; } @Override public int getFileIndex() { return fileIndex; } } // Functional helpers for concise parameterized tests private interface IntGetter { int apply(FileEntry e); } private interface LongGetter { long apply(FileEntry e); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
assertEquals(-10L, mock.length()); } } @ParameterizedTest(name = "getType returns {0}") @ValueSource(ints = { 0, 1, -5, Integer.MAX_VALUE }) @DisplayName("Parameterized type values") void typeParameterized(int type) { FileEntry mock = mock(FileEntry.class); when(mock.getType()).thenReturn(type); assertEquals(type, mock.getType()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
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) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.5K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
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,
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtExceptionTest.java
"The error string should match the expected message for given error class and code"); } /** * Provides arguments for the testGetErrorString parameterized test. * Covers all defined error classes and codes, including default cases. */ private static Stream<Arguments> provideErrorClassAndCodeForGetErrorString() { return Stream.of(
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.9K bytes - Viewed (0)