- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for handlerTest (0.17 seconds)
-
src/test/java/jcifs/https/HandlerTest.java
import org.junit.jupiter.api.Test; /** * Test suite for jcifs.https.Handler class. * Tests HTTPS URL stream handler functionality with NTLM authentication support. */ @DisplayName("HTTPS Handler Tests") class HandlerTest { private Handler handler; @BeforeEach void setUp() { handler = new Handler(null); } @Nested @DisplayName("Constructor Tests") class ConstructorTests {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/HandlerTest.java
import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.SmbConstants; import jcifs.context.SingletonContext; @ExtendWith(MockitoExtension.class) class HandlerTest { @Mock CIFSContext mockCtx; @Mock Configuration mockCfg; // Provides a fresh handler instance for tests private Handler newHandler() { return new Handler(); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.8K bytes - Click Count (0) -
src/test/java/jcifs/http/HandlerTest.java
import jcifs.CIFSContext; /** * Tests for the {@link Handler} class. * This class tests the functionality of the NTLM URLStreamHandler wrapper. */ @ExtendWith(MockitoExtension.class) class HandlerTest { @Mock private CIFSContext mockCifsContext; private Handler handler; private Properties originalSystemProperties; @BeforeEach void setUp() throws Exception {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/https/HandlerTest.java
/** * Test suite for jcifs.smb1.https.Handler class. * Tests HTTPS URL stream handler functionality with NTLM authentication support. */ @DisplayName("SMB1 HTTPS Handler Tests") class HandlerTest { private Handler handler; @BeforeEach void setUp() { handler = new Handler(); } @Nested @DisplayName("Constructor Tests") class ConstructorTests {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/HandlerTest.java
/** * Unit tests for {@link Handler}. * * Tests the SMB URL handler implementation including: * - Default port configuration * - URL connection opening * - URL creation and parsing */ public class HandlerTest { private final Handler handler = new Handler(); @BeforeAll static void setupProtocolHandler() { // Register the SMB protocol handlerCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.4K bytes - Click Count (0) -
internal/grid/grid_test.go
} // local to remote, unbuffered t.Run("unbuffered", func(t *testing.T) { testHandler(t, handlerTest, false) }) t.Run("buffered", func(t *testing.T) { testHandler(t, handlerTest2, false) }) t.Run("buffered", func(t *testing.T) { testHandler(t, handlerTest2, true) }) } // testStreamDeadline will test if server func testStreamDeadline(t *testing.T, local, remote *Manager) {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 36.1K bytes - Click Count (0) -
internal/grid/connection_test.go
} return nil }, OutCapacity: 1, InCapacity: 1, } errFatal(remote.RegisterSingleHandler(handlerTest, h1)) errFatal(remote.RegisterStreamingHandler(handlerTest2, h2)) errFatal(local.RegisterSingleHandler(handlerTest, h1)) errFatal(local.RegisterStreamingHandler(handlerTest2, h2)) // local to remote remoteConn := local.Connection(remoteHost) errFatal(remoteConn.WaitForConnect(t.Context()))
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 5.9K bytes - Click Count (0) -
internal/grid/benchmark_test.go
b.Fatal(err) } } rpc := NewSingleHandler[*testRequest, *testResponse](handlerTest2, newTestRequest, newTestResponse) grid, err := SetupTestGrid(n) errFatal(err) b.Cleanup(grid.Cleanup) // Create n managers. for _, remote := range grid.Managers { // Register a single handler which echos the payload. errFatal(remote.RegisterSingleHandler(handlerTest, func(payload []byte) ([]byte, *RemoteErr) { defer PutByteBuffer(payload)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15.5K bytes - Click Count (0) -
internal/grid/handlers.go
// Extend the type to uint16 when hit. if uint32(handlerLast) > 255 { panic(fmt.Sprintf("out of handler IDs. %d > %d", handlerLast, 255)) } } func (h HandlerID) valid() bool { return h != handlerInvalid && h < handlerLast } func (h HandlerID) isTestHandler() bool { return h >= handlerTest && h <= handlerTest2 } // RemoteErr is a remote error type.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 27.7K bytes - Click Count (0) -
internal/grid/handlers_string.go
_ = x[HandlerRenameDataInline-72] _ = x[HandlerRenameData2-73] _ = x[HandlerCheckParts2-74] _ = x[HandlerRenamePart-75] _ = x[HandlerClearUploadID-76] _ = x[HandlerCheckParts3-77] _ = x[handlerTest-78] _ = x[handlerTest2-79] _ = x[handlerLast-80] }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Dec 12 05:50:57 GMT 2024 - 4.4K bytes - Click Count (0)