Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for assertDoesNotThrow (0.98 sec)

  1. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java

            // 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));
            assertDoesNotThrow(() -> resp.readParametersWireFormat(null, 0, 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/InputValidatorTest.java

        void testValidShareNames(String share) {
            assertDoesNotThrow(() -> InputValidator.validateShareName(share));
        }
    
        @Test
        @DisplayName("Test port validation")
        void testPortValidation() {
            assertDoesNotThrow(() -> InputValidator.validatePort(445));
            assertDoesNotThrow(() -> InputValidator.validatePort(139));
            assertDoesNotThrow(() -> InputValidator.validatePort(1));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

        void testNullInputs() {
            assertDoesNotThrow(() -> {
                SpnegoException ex1 = new SpnegoException((String) null);
                assertNotNull(ex1);
                assertNull(ex1.getMessage());
                assertNull(ex1.getCause());
            });
    
            assertDoesNotThrow(() -> {
                SpnegoException ex2 = new SpnegoException("msg", null);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/EmptyIteratorTest.java

    package jcifs;
    
    import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.util.Iterator;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. src/test/java/jcifs/SmbResourceTest.java

    package jcifs;
    
    import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            void testSetPadding() {
                assertDoesNotThrow(() -> request.setPadding((byte) 0));
                assertDoesNotThrow(() -> request.setPadding((byte) 1));
                assertDoesNotThrow(() -> request.setPadding((byte) 0xFF));
            }
    
            @Test
            @DisplayName("Should set read flags correctly")
            void testSetReadFlags() {
                assertDoesNotThrow(() -> request.setReadFlags((byte) 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/DfsResolverTest.java

            assertDoesNotThrow(() -> dfsResolver.cache(mockContext, "\\\\anyServer\\anyShare\\anyPath", mockReferralData));
        }
    
        @Test
        void testCache_InvalidPath() {
            when(mockConfig.isDfsDisabled()).thenReturn(false);
            DfsReferralData mockReferralData = mock(DfsReferralData.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertDoesNotThrow(() -> request.setFileId(shortFileId));
                assertDoesNotThrow(() -> request.setFileId(standardFileId));
                assertDoesNotThrow(() -> request.setFileId(longFileId));
            }
    
            @Test
            @DisplayName("Should handle unspecified file ID")
            void testUnspecifiedFileId() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

        @DisplayName("Should handle null message gracefully")
        void testNullMessage() {
            // When/Then
            assertDoesNotThrow(() -> {
                RuntimeCIFSException exception = new RuntimeCIFSException((String) null);
                assertNull(exception.getMessage());
            });
    
            assertDoesNotThrow(() -> {
                RuntimeCIFSException exception = new RuntimeCIFSException(null, new RuntimeException());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java

                // Act & Assert
                assertDoesNotThrow(() -> new MsrpcSamrConnect2(null, 0, ph));
            }
    
            @Test
            @DisplayName("should accept negative access mask values")
            void testNegativeAccessMaskAccepted() {
                // Arrange
                SamrPolicyHandle ph = createMockPolicyHandle();
    
                // Act & Assert
                assertDoesNotThrow(() -> new MsrpcSamrConnect2("\\\\srv", -42, ph));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top