Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 640 for res3 (0.03 seconds)

  1. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            Smb2IoctlResponse resp = new Smb2IoctlResponse(config);
    
            resp.decode(packet, 0);
            assertEquals(Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, resp.getCtlCode());
            assertEquals(0x1234, resp.getIoctlFlags());
            assertNotNull(resp.getFileId());
            assertEquals(16, resp.getFileId().length);
            assertEquals(12, resp.getOutputLength());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java

        private SmbComWriteResponse resp;
        private Configuration cfgMock;
    
        @BeforeEach
        public void setUp() {
            // create a mock configuration that satisfies constructor requirements.
            cfgMock = mock(Configuration.class);
            resp = new SmbComWriteResponse(cfgMock);
        }
    
        @Test
        public void testInitialCountIsZero() {
            assertEquals(0, resp.getCount(), "Initial count should be zero");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  3. tests/test_response_dependency.py

        @app.get("/")
        def endpoint(response: Annotated[Response, Depends(modify_response)]):
            return {"status": "ok"}
    
        client = TestClient(app)
        resp = client.get("/")
    
        assert resp.status_code == 200
        assert resp.json() == {"status": "ok"}
        assert resp.headers.get("X-Custom") == "modified"
    
    
    def test_response_with_depends_default():
        """Response type hint should work with Response = Depends(...)."""
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 05 18:23:16 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  4. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/RestResourcesPluginFuncTest.groovy

            file("/build/restResources/yamlSpecs/rest-api-spec/api/" + apiCore1).exists()
            file("/build/restResources/yamlSpecs/rest-api-spec/api/" + apiCore2).exists()
            file("/build/restResources/yamlSpecs/rest-api-spec/api/" + apiXpack).exists()
            file("/build/restResources/yamlTests/rest-api-spec/test/" + coreTest).exists()
            file("/build/restResources/yamlTests/rest-api-spec/test/" + xpackTest).exists()
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jul 20 21:05:16 GMT 2021
    - 7K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/http/NetworkExplorer.java

                if (ntlm == null) {
                    resp.setHeader("WWW-Authenticate", "NTLM");
                    if (offerBasic) {
                        resp.addHeader("WWW-Authenticate", "Basic realm=\"" + realm + "\"");
                    }
                    resp.setHeader("Connection", "close");
                    resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
                    resp.flushBuffer();
                    return;
                }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            List<FileNotifyInformation> info = new ArrayList<>();
            NotifyResponse resp = mock(NotifyResponse.class);
            when(resp.isReceived()).thenReturn(true);
            when(resp.getErrorCode()).thenReturn(0);
            when(resp.getNotifyInformation()).thenReturn(info);
            setupSmb2(resp, new byte[16]);
            SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0x1234, true);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/SmbTransport.java

            final Trans2GetDfsReferralResponse resp = new Trans2GetDfsReferralResponse();
            ipc.send(new Trans2GetDfsReferral(path), resp);
    
            if (resp.numReferrals == 0) {
                return null;
            }
            if (rn == 0 || resp.numReferrals < rn) {
                rn = resp.numReferrals;
            }
    
            DfsReferral dr = new DfsReferral();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            int decoded = resp.decode(buf, headerStart);
            assertTrue(decoded > 0, "Decode should return positive length");
    
            assertEquals(NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, resp.getStatus());
            assertArrayEquals(blob, resp.getBlob(), "Security blob should match");
            assertEquals(sessionFlags, resp.getSessionFlags(), "Session flags should decode");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java

            // Arrange
            TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse();
            // Act & Assert - no exceptions should be thrown
            assertDoesNotThrow(() -> resp.writeSetupWireFormat(null, 0));
            assertDoesNotThrow(() -> resp.writeParametersWireFormat(null, 0));
            assertDoesNotThrow(() -> resp.writeDataWireFormat(null, 0));
            assertDoesNotThrow(() -> resp.readSetupWireFormat(null, 0, 0));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

        void constructor_happyPath() {
            // Arrange
            Configuration cfg = Mockito.mock(Configuration.class);
    
            // Act
            Smb2LogoffResponse resp = new Smb2LogoffResponse(cfg);
    
            // Assert
            assertNotNull(resp, "Response instance should be created");
        }
    
        @Nested
        @DisplayName("writeBytesWireFormat")
        class WriteBytesWireFormat {
    
            @ParameterizedTest
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.7K bytes
    - Click Count (0)
Back to Top