Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 2,377 for _shouldn (0.24 sec)

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

            @Test
            @DisplayName("Should get chunksWritten value")
            void testGetChunksWritten() {
                // Initial value should be 0
                assertEquals(0, response.getChunksWritten());
            }
    
            @Test
            @DisplayName("Should get chunkBytesWritten value")
            void testGetChunkBytesWritten() {
                // Initial value should be 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java

                caughtSpecific = true;
            } catch (RuntimeException e) {
                caughtRuntime = true;
            }
    
            assertTrue("Should have caught DictionaryExpiredException", caughtSpecific);
            assertFalse("Should not have caught as RuntimeException", caughtRuntime);
        }
    
        public void test_rethrow() {
            // Test rethrowing the exception
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

    class Smb2LeaseKeyTest {
    
        @Test
        @DisplayName("Should generate random lease key with correct size")
        void testRandomLeaseKeyGeneration() {
            Smb2LeaseKey key = new Smb2LeaseKey();
    
            assertNotNull(key.getKey());
            assertEquals(16, key.getKey().length);
            assertFalse(key.isZero());
        }
    
        @Test
        @DisplayName("Should create lease key from byte array")
        void testLeaseKeyFromBytes() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                }
            }
    
            @Test
            @DisplayName("Should throw exception on null buffer")
            void testDecodeWithNullBuffer() {
                assertThrows(SMBProtocolDecodingException.class, () -> testResponse.decode(null, 0, 10),
                        "Should throw exception for null buffer");
            }
    
            @Test
            @DisplayName("Should throw exception on negative buffer index")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PacGroupTest.java

        @Test
        void testConstructor() {
            // Verify that the constructor correctly sets the id and attributes
            assertEquals(mockSid, pacGroup.getId(), "The SID should be correctly set in the constructor.");
            assertEquals(attributes, pacGroup.getAttributes(), "The attributes should be correctly set in the constructor.");
        }
    
        /**
         * Test method for {@link jcifs.pac.PacGroup#getId()}.
         */
        @Test
        void testGetId() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/av/AvPairTest.java

            assertNull(avPair3.getRaw(), "Raw data should be null if constructor argument was null.");
        }
    
        @Test
        void testConstants() {
            assertEquals(0x0, AvPair.MsvAvEOL, "MsvAvEOL constant should be 0x0.");
            assertEquals(0x6, AvPair.MsvAvFlags, "MsvAvFlags constant should be 0x6.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/AllocInfoTest.java

            @Test
            @DisplayName("Should implement FileSystemInformation interface")
            void shouldImplementFileSystemInformation() {
                // Verify that AllocInfo extends FileSystemInformation
                assertTrue(FileSystemInformation.class.isAssignableFrom(AllocInfo.class));
            }
    
            @Test
            @DisplayName("Should implement Decodable interface through FileSystemInformation")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

        }
    
        @Test
        @DisplayName("Should return the credentials provided in the constructor")
        void testGetCredentials() {
            assertEquals(mockCredentials, wrapper.getCredentials(), "getCredentials should return the initially set credentials");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/DfsReferralDataTest.java

        void testGetPath() {
            // Given
            String path = "/test/path";
            when(mockReferralData.getPath()).thenReturn(path);
    
            // When
            String result = mockReferralData.getPath();
    
            // Then
            assertEquals(path, result);
            verify(mockReferralData).getPath();
        }
    
        @Test
        @DisplayName("Should get expiration")
        void testGetExpiration() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            // Should match with same values
            assertTrue(fileInfo.matches(1024L, 1000L, 0x20));
    
            // Should not match with different size
            assertFalse(fileInfo.matches(2048L, 1000L, 0x20));
    
            // Should not match with different last modified
            assertFalse(fileInfo.matches(1024L, 2000L, 0x20));
    
            // Should not match with different attributes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top