Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Cp850 (0.04 sec)

  1. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

            when(mockConfig.getNetbiosCachePolicy()).thenReturn(30); // Short cache
            when(mockConfig.getWinsServers()).thenReturn(new InetAddress[0]);
            when(mockConfig.getOemEncoding()).thenReturn("Cp850");
    
            // Create the name service client with mock context
            nameServiceClient = new NameServiceClientImpl(mockContext);
        }
    
        @Test
        @DisplayName("Should get local host name")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            assertEquals(pos, NtlmMessage.readULong(dest, off), "Position should still be written for empty source.");
        }
    
        @Test
        void testGetOEMEncoding() {
            // Test getOEMEncoding
            assertEquals("Cp850", NtlmMessage.getOEMEncoding(), "Should return the correct OEM encoding.");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbConstantsTest.java

        @Test
        @DisplayName("Should define time and encoding constants")
        void testTimeAndEncodingConstants() {
            assertEquals(11644473600000L, SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601);
            assertEquals("Cp850", SmbConstants.DEFAULT_OEM_ENCODING);
            assertEquals(-1, SmbConstants.FOREVER);
        }
    
        @Test
        @DisplayName("Should validate flag combinations work correctly")
        void testFlagCombinations() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/Config.java

         */
    
        private static Properties prp = new Properties();
        private static LogStream log;
        /**
         * Default OEM encoding used for SMB communication.
         */
        public static String DEFAULT_OEM_ENCODING = "Cp850";
    
        static {
            String filename;
            int level;
            FileInputStream in = null;
    
            log = LogStream.getInstance();
    
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            // Mock the OEM encoding for non-Unicode tests
            when(mockConfig.getOemEncoding()).thenReturn("Cp850");
            fileBothDirectoryInfo = new FileBothDirectoryInfo(mockConfig, true);
            fileBothDirectoryInfoNonUnicode = new FileBothDirectoryInfo(mockConfig, false);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/NtlmUtilTest.java

        void testGetPreNTLMResponse_basicAndInteractions() throws Exception {
            // Arrange
            when(cifsContext.getConfig()).thenReturn(configuration);
            when(configuration.getOemEncoding()).thenReturn("Cp850");
            String password14 = "ABCDEFGHIJKLMN"; // 14 chars
            String password15 = "ABCDEFGHIJKLMNO"; // 15 chars, same first 14
            byte[] challenge = hex("0102030405060708");
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbConstants.java

         */
        long MILLISECONDS_BETWEEN_1970_AND_1601 = 11644473600000L;
    
        /**
         * Default OEM encoding for non-Unicode strings.
         */
        String DEFAULT_OEM_ENCODING = "Cp850";
    
        /**
         * Constant representing an infinite timeout.
         */
        int FOREVER = -1;
    
        /**
         * When specified as the <code>shareAccess</code> constructor parameter,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/Configuration.java

         *
         * @return maximum number of sessions on a single connection
         */
        int getSessionLimit();
    
        /**
         *
         * Property {@code jcifs.encoding} (string, default {@code Cp850})
         *
         * @return OEM encoding to use
         */
        String getOemEncoding();
    
        /**
         * Gets the local timezone for time-related operations
         *
         * @return local timezone
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top