- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,286 for Constructors (0.07 sec)
-
src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java
* Unit tests for {@link SmbException}. * * The tests exercise the public API: constructors, {@link #getNtStatus()}, * {@link #getRootCause()}, and {@link #toString()}. */ @ExtendWith(MockitoExtension.class) class SmbExceptionTest { /** * Happy path – constructor with a valid NT status code (0). */ @Test @DisplayName("Constructor 0 – NT_STATUS_SUCCESS") void testConstructorWithZeroCode() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlException.java
*/ package org.codelibs.curl; /** * Custom exception class for handling errors related to Curl operations. * This class extends {@link RuntimeException} and provides constructors * to create an exception instance with a message and an optional cause. * * <p>Usage examples:</p> * <pre> * throw new CurlException("Error message"); * throw new CurlException("Error message", cause);
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java
@Test @DisplayName("Default constructor should create exception with null message and cause") void testDefaultConstructor() { // Given & When CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException(); // Then assertNull(exception.getMessage(), "Default constructor should have null message");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java
} /** * Test with an empty string for both constructors. */ @Test void testEmptyString() { String emptyString = ""; AvTargetName avTargetNameFromString = new AvTargetName(emptyString); assertEquals(emptyString, avTargetNameFromString.getTargetName(), "Empty string should be handled correctly from string constructor");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
// Assert assertFalse(SessionSetupHandler.class.isInstance(null)); } @Test @DisplayName("Invalid: looking up constructor on interface fails") void testNoConstructorLookup() { // Act & Assert: interfaces have no constructors assertThrows(NoSuchMethodException.class, () -> SessionSetupHandler.class.getDeclaredConstructor()); } @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) -
src/test/java/jcifs/ntlmssp/av/AvFlagsTest.java
assertEquals(negativeFlags, negAvFlags.getFlags(), "Flags should match the negative input integer"); } /** * Test getFlags method. * This is implicitly tested by the constructors, but an explicit test ensures its direct functionality. */ @Test void testGetFlags() { int expectedFlags = 0xAABBCCDD; AvFlags avFlags = new AvFlags(expectedFlags);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
* <li>{@code SUFFIX} - Suffix for the temporary file name.</li> * <li>{@code done} - Flag indicating whether the file has been retrieved.</li> * </ul> * * <p>Constructors:</p> * <ul> * <li>{@code ContentOutputStream(int threshold, File tmpDir)} - Constructs a ContentOutputStream with a specified threshold and temporary directory.</li> * </ul> * * <p>Methods:</p> * <ul>
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoConstantsTest.java
assertEquals(0, c.getDeclaredMethods().length, "No declared methods expected"); assertEquals(0, c.getDeclaredConstructors().length, "Interfaces have no constructors"); } @Test @DisplayName("Fields are public static final Strings with expected values") void fieldModifiersAndTypes() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
factories.add(factory); } } if (!Modifier.isAbstract(type.getRawType().getModifiers())) { for (Constructor<?> constructor : type.getRawType().getDeclaredConstructors()) { Invokable<T, T> invokable = type.constructor(constructor); if (!invokable.isPrivate() && !invokable.isSynthetic()) { factories.add(invokable); } } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/BeanDesc.java
* @param args * The arguments to pass to the constructor * @return A new instance */ <T> T newInstance(Object... args); /** * Returns the {@link ConstructorDesc} for the given parameter types. * * @param paramTypes * The array of parameter types for the constructor * @return The {@link ConstructorDesc} for the given parameter types */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 24 01:52:43 UTC 2025 - 7.9K bytes - Viewed (0)