- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 262 for asText (0.72 sec)
-
src/test/java/jcifs/smb/SmbFileTest.java
smbFile.connect(); // Assert - should not throw exception } @Test void testClose() { // Act smbFile.close(); // Assert - should not throw exception } @Test void testGetTransportContext() { // Act & Assert
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
// Assert assertTrue(result); verify(negotiationResponse).isDFSSupported(); } @Test @DisplayName("Test isDFSSupported returns false") void testIsDFSSupportedFalse() { // Arrange when(negotiationResponse.isDFSSupported()).thenReturn(false); // Act boolean result = negotiationResponse.isDFSSupported(); // AssertRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java
// Assert assertNotNull(transWaitNamedPipe); assertNull(transWaitNamedPipe.name); } @Test @DisplayName("Constructor with empty pipe name should handle gracefully") void testConstructorWithEmptyPipeName() { // Act transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, ""); // Assert assertNotNull(transWaitNamedPipe);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/smb/SmbNamedPipeTest.java
void constructsWithIpcShare(String url) throws Exception { // Arrange & Act SmbNamedPipe pipe = new SmbNamedPipe(url, SmbPipeResource.PIPE_TYPE_RDWR, ctx()); // Assert: type is named pipe and pipe type preserved assertEquals(SmbConstants.TYPE_NAMED_PIPE, pipe.getType(), "Type should be TYPE_NAMED_PIPE");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/ShareEnumIteratorTest.java
// hasNext/next sequence over two elements assertTrue(it.hasNext(), "Expected first element available"); SmbResource r1 = it.next(); assertNotNull(r1); assertEquals("foo/", r1.getName(), "First child name should match with trailing slash"); assertTrue(it.hasNext(), "Expected second element available"); SmbResource r2 = it.next();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
void release_invokedOnce() throws Exception { // Arrange: no setup needed; we verify interaction only // Act: call release handle.release(); // Assert: verify one invocation and no more verify(handle, times(1)).release(); verifyNoMoreInteractions(handle); } @Test @DisplayName("ensureDFSResolved(): no exception when underlying call succeeds")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
void testConstructor() { // Assert assertNotNull(response); assertTrue(response instanceof SmbComTransactionResponse); assertEquals(0, response.getAvailable()); } @Test @DisplayName("Should verify status constants are correctly defined") void testStatusConstants() { // Assert assertEquals(1, TransPeekNamedPipeResponse.STATUS_DISCONNECTED);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlExceptionTest.java
* governing permissions and limitations under the License. */ package org.codelibs.curl; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import java.io.IOException; import org.junit.Test; /** * Test class for CurlException.
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/jcifs/EmptyIterator.java
public EmptyIterator() { // Default constructor } /** * {@inheritDoc} * * @see java.util.Iterator#hasNext() */ @Override public boolean hasNext() { return false; } /** * {@inheritDoc} * * @see java.util.Iterator#next() */ @Override public SmbResource next() { return null; } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
int attrs = SmbConstants.ATTR_NORMAL; // Act SmbFileHandleImpl result = SmbCopyUtil.openCopyTargetFile(dest, attrs, alsoRead); // Assert assertSame(handle, result, "Should return handle from dest.openUnshared"); ArgumentCaptor<Integer> accessCaptor = ArgumentCaptor.forClass(Integer.class);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0)