Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 4,335 for news (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Given
            Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, path);
            byte[] buffer = new byte[1024];
    
            // Encode to set headerStart
            req.encode(buffer, 0);
    
            // Then
            byte[] pathBytes = path.getBytes(StandardCharsets.UTF_16LE);
    
            // Verify path is written correctly at body + 8
            byte[] actualPath = new byte[pathBytes.length];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/SsoMessageExceptionTest.java

            // Setup
            final String message = "Test SSO error message";
            final Exception cause = new RuntimeException("Test cause");
            final VaMessenger<FessMessages> messageCode = messages -> messages.addErrorsSsoLoginError(UserMessages.GLOBAL_PROPERTY_KEY);
    
            // Execute
            final SsoMessageException exception = new SsoMessageException(messageCode, message, cause);
    
            // Verify
            assertNotNull(exception);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            // Write completely empty file
            try (java.io.FileWriter fw = new java.io.FileWriter(testFile)) {
                // Write nothing
            }
    
            // Create a new CharMappingFile instance to ensure clean state
            CharMappingFile emptyMappingFile = new CharMappingFile("empty_test", testFile.getAbsolutePath(), new Date());
            emptyMappingFile.manager(dictionaryManager);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacSignatureTest.java

            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            writeLittleEndianInt(baos, PacSignature.KERB_CHECKSUM_HMAC_MD5);
            // Write only 10 bytes instead of 16
            baos.write(new byte[10]);
            byte[] data = baos.toByteArray();
    
            // Verify that PACDecodingException is thrown
            assertThrows(PACDecodingException.class, () -> {
                new PacSignature(data);
            });
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHookTest.java

            // Test OK status
            ApiResult okResult = new ApiResult.ApiResponse().status(Status.OK).result();
            assertNotNull(okResult);
    
            // Test BAD_REQUEST status
            ApiResult badRequestResult = new ApiResult.ApiResponse().status(Status.BAD_REQUEST).result();
            assertNotNull(badRequestResult);
    
            // Test UNAUTHORIZED status
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/SmbNegotiationTest.java

            assertArrayEquals(new byte[] { 0x05, 0x06, 0x07, 0x08 }, responseBuffer);
        }
    
        @Test
        @DisplayName("Test with empty buffers")
        void testWithEmptyBuffers() {
            // Test with empty byte arrays
            byte[] emptyRequestBuffer = new byte[0];
            byte[] emptyResponseBuffer = new byte[0];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/persistent/HandleInfoTest.java

        @BeforeEach
        public void setUp() {
            testGuid = new HandleGuid();
            testFileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                testFileId[i] = (byte) (i + 1);
            }
            testLeaseKey = new Smb2LeaseKey();
        }
    
        @Test
        public void testHandleInfoCreation() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java

            config = new PropertyConfiguration(new Properties());
        }
    
        /**
         * Test of readParameterWordsWireFormat method
         */
        @Test
        public void testReadParameterWordsWireFormat() {
            // Given
            byte[] buffer = new byte[] { (byte) 0xff, (byte) 0xff, 0, 0, 0, 0, 0, 0 };
            SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/SidResolverTest.java

            doThrow(new CIFSException("Context cannot be null")).when(sidResolver).resolveSids(eq(null), anyString(), any(SID[].class));
    
            assertThrows(CIFSException.class, () -> sidResolver.resolveSids(null, testServerName, testSids));
        }
    
        @Test
        void testResolveSids_WithNullServerName() throws CIFSException {
            doThrow(new CIFSException("Server name cannot be null")).when(sidResolver)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/CryptoTest.java

            // Very unlikely to be equal
            assertNotEquals(new String(random1), new String(random2));
        }
    
        @Test
        @DisplayName("Should handle AES encryption operations")
        void testAESOperations() throws Exception {
            // Given
            byte[] key = new byte[16]; // 128-bit key
            byte[] iv = new byte[16]; // 128-bit IV
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
Back to top