Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 99 for 65537 (0.02 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

            @Test
            @DisplayName("Should decode large value correctly")
            void testDecodeLargeValue() throws NdrException {
                // Given: NdrShort and mock returning large value
                int largeValue = 65535;
                NdrShort ndrShort = new NdrShort(0);
                when(mockBuffer.dec_ndr_short()).thenReturn(largeValue);
    
                // When: Decoding the value
                ndrShort.decode(mockBuffer);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

        private Smb2QueryDirectoryRequest request;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockConfig.getMaximumBufferSize()).thenReturn(65536);
            when(mockConfig.getListSize()).thenReturn(65536);
            when(mockContext.getConfig()).thenReturn(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor with configuration only")
        void testConstructorWithConfig() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/SMBSigningDigestTest.java

        }
    
        @Test
        @DisplayName("Test sign method with large data array")
        void testSignWithLargeData() {
            // Arrange
            byte[] largeData = new byte[65536]; // 64KB
            for (int i = 0; i < largeData.length; i++) {
                largeData[i] = (byte) (i % 256);
            }
            int offset = 1024;
            int length = 32768; // 32KB
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. utils/utils_test.go

    		{"int64", int64(math.MaxInt64), "9223372036854775807"},
    		{"uint", uint(math.MaxUint64), "18446744073709551615"},
    		{"uint8", uint8(math.MaxUint8), "255"},
    		{"uint16", uint16(math.MaxUint16), "65535"},
    		{"uint32", uint32(math.MaxUint32), "4294967295"},
    		{"uint64", uint64(math.MaxUint64), "18446744073709551615"},
    		{"string", "abc", "abc"},
    		{"other", true, ""},
    	}
    	for _, test := range tests {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. cmd/net_test.go

    		{":0", nil},
    		{"localhost", nil},
    		{"", fmt.Errorf("invalid argument")},
    		{"example.org:54321", fmt.Errorf("host in server address should be this server")},
    		{":-10", fmt.Errorf("port must be between 0 to 65535")},
    	}
    
    	for _, testCase := range testCases {
    		t.Run("", func(t *testing.T) {
    			err := CheckLocalServerAddr(testCase.serverAddr)
    			switch {
    			case testCase.expectedErr == nil:
    				if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                buffer.encode(dst, 0);
    
                ByteBuffer bb = ByteBuffer.wrap(dst).order(ByteOrder.LITTLE_ENDIAN);
                // -1 as unsigned short should be 65535
                assertEquals((short) -1, bb.getShort());
                assertEquals(65535, Short.toUnsignedInt((short) -1));
            }
        }
    
        @Nested
        @DisplayName("Integration Tests with SMBUtil")
        class SMBUtilIntegrationTests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            // Given
            when(mockDelegate.getSendBufferSize()).thenReturn(8192);
            when(mockDelegate.getReceiveBufferSize()).thenReturn(8192);
            when(mockDelegate.getMaximumBufferSize()).thenReturn(65536);
            when(mockDelegate.getTransactionBufferSize()).thenReturn(65024);
            when(mockDelegate.getBufferCacheSize()).thenReturn(16);
            when(mockDelegate.getNotifyBufferSize()).thenReturn(1024);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

        @BeforeEach
        void setUp() {
            Arrays.fill(TEST_FILE_ID, (byte) 0x42);
        }
    
        private void setupMockConfig() {
            when(mockConfig.getTransactionBufferSize()).thenReturn(65536);
        }
    
        private void setupMockContext() {
            when(mockContext.getConfig()).thenReturn(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor with config and control code")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  9. cmd/sftp-server.go

    			if err != nil {
    				logger.Fatal(fmt.Errorf("invalid arguments passed to --sftp=%s (%v)", arg, err), "unable to start SFTP server")
    			}
    			if port < 1 || port > 65535 {
    				logger.Fatal(fmt.Errorf("invalid arguments passed to --sftp=%s, (port number must be between 1 to 65535)", arg), "unable to start SFTP server")
    			}
    			publicIP = host
    		case "ssh-private-key":
    			sshPrivateKey = tokens[1]
    		case "pub-key-algos":
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

            mockContext = mock(CIFSContext.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockConfig.getMaximumBufferSize()).thenReturn(65536);
            when(mockConfig.getListSize()).thenReturn(65536);
    
            testFileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                testFileId[i] = (byte) i;
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
Back to top