- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 87 for assertDoesNotThrow (0.54 seconds)
-
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));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11.9K bytes - Click Count (0) -
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));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.4K bytes - Click Count (0) -
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;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12K bytes - Click Count (0) -
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));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.8K bytes - Click Count (0) -
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() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
assertDoesNotThrow(() -> mockReferralData.fixupDomain(domain)); // Test with concrete implementation - default constructor has null server // fixupDomain requires non-null server, so we test with initialized instance DfsReferralDataImpl impl = createInitializedDfsReferralDataImpl(); assertDoesNotThrow(() -> impl.fixupDomain(domain)); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 28.2K bytes - Click Count (0) -
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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
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());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.2K bytes - Click Count (0) -
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;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
// All sizes should be accepted without exception assertDoesNotThrow(() -> request.setFileId(shortFileId), "Should handle 8-byte file ID"); assertDoesNotThrow(() -> request.setFileId(standardFileId), "Should handle 16-byte file ID"); assertDoesNotThrow(() -> request.setFileId(longFileId), "Should handle 32-byte file ID"); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0)