- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 338 for tiven (0.06 sec)
-
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
assertTrue(exception instanceof RuntimeException); } @Test @DisplayName("Should create RuntimeCIFSException with message") void testConstructorWithMessage() { // Given String message = "CIFS runtime error occurred"; // When RuntimeCIFSException exception = new RuntimeCIFSException(message); // Then assertNotNull(exception);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
} /** * Test that releaseBuffer validates buffer before accepting it. */ @Test public void testReleaseBufferValidation() { // Given - Various invalid buffers byte[] nullBuffer = null; byte[] wrongSizeBuffer = new byte[100]; // Wrong size byte[] correctBuffer = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/FieldUtil.java
*/ public abstract class FieldUtil { /** * Do not instantiate. */ protected FieldUtil() { } /** * Returns the value of a {@code static} field represented by the given {@link Field}. * * @param <T> the type of the field * @param field the field (must not be {@literal null}) * @return the value represented by the {@code static} fieldRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
mockContext.renewCredentials("hint", new Exception()); }); } @Test @DisplayName("Should get SmbResource") void testGet() throws CIFSException { // Given String url = "smb://server/share/file"; SmbResource mockResource = mock(SmbResource.class); when(mockContext.get(url)).thenReturn(mockResource); // When
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/NetbiosNameTest.java
void testVariousNameTypes(int nameType) { // Given when(mockNetbiosName.getNameType()).thenReturn(nameType); // When int result = mockNetbiosName.getNameType(); // Then assertEquals(nameType, result); } @Test @DisplayName("Should handle null name") void testNullName() { // Given when(mockNetbiosName.getName()).thenReturn(null);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/CIFSExceptionTest.java
*/ @DisplayName("CIFSException Tests") class CIFSExceptionTest extends BaseTest { @Test @DisplayName("Should create CIFSException with message") void testCIFSExceptionWithMessage() { // Given String message = "CIFS operation failed"; // When CIFSException exception = new CIFSException(message); // Then assertNotNull(exception);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/StringConversionUtil.java
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
// Given setPrivateField(response, "dialectRevision", 0x0311); // When int dialect = response.getDialectRevision(); // Then assertEquals(0x0311, dialect); } @Test @DisplayName("Should return server GUID") void testGetServerGuid() throws Exception { // Given byte[] guid = new byte[16];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/stream/StreamUtil.java
public static <T> StreamOf<T> stream(final T... values) { return new StreamOf<>(() -> values != null ? Arrays.stream(values) : Collections.<T> emptyList().stream()); } /** * Splits the given string into an array of substrings based on the specified regular expression * and returns a stream of those substrings. * * @param value the string to be split; if {@code null}, the method returns an empty stream
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationRequestTest.java
void testInterfaceCanBeMocked() { // Given SmbNegotiationRequest mockRequest = mock(SmbNegotiationRequest.class); // Then assertNotNull(mockRequest, "Mock should be created successfully"); } @Test @DisplayName("Test default behavior of mock without stubbing") void testDefaultBehaviorOfMock() { // Given
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0)