- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 139 for edge (0.2 sec)
-
src/test/java/jcifs/smb/SmbSessionInternalTest.java
when(session.isInUse()).thenReturn(inUse); boolean result = session.isInUse(); assertEquals(inUse, result); verify(session, times(1)).isInUse(); } // Happy path + edge: getSessionKey returns bytes, empty and null @Test @DisplayName("getSessionKey returns bytes, empty, then null") void getSessionKey_variants() throws CIFSException { byte[] key = new byte[] { 10, 20 };
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
package jcifs.smb1.smb1; /** * Unit tests for {@link FileEntry}. The interface itself has no * implementation, so the tests exercise the contract via Mockito mocks. * Each method is exercised for normal inputs, extreme or edge cases, and * interaction verification. */ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.mockito.Mockito.mock;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
SmbException ex = assertThrows(SmbException.class, () -> transport.hasCapability(42)); assertTrue(ex.getMessage().contains("failed")); verify(transport).hasCapability(42); } // Edge: disconnected status toggles @ParameterizedTest @DisplayName("isDisconnected reflects current mocked state") @ValueSource(booleans = { true, false }) void isDisconnected_states(boolean disconnected) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/EXTRACTOR_TESTS_README.md
- ✅ Error messages include file type context --- ### 2. FilenameExtractorEnhancedTest.java **Purpose**: Test FilenameExtractor edge cases and new documentation. **Key Test Areas**: - Parameter handling (null, empty, missing) - Special character handling - Input stream validation (not consumption) - Edge cases (long filenames, paths, whitespace) **Test Count**: 10 tests **Key Scenarios**: - ✅ Valid filename extraction
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Nov 19 08:55:01 UTC 2025 - 5.7K bytes - Viewed (0) -
src/main/webapp/WEB-INF/orig/view/help.jsp
${fe:html(true)} <head profile="http://a9.com/-/spec/opensearch/1.1/"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title><la:message key="labels.search_title" /></title> <link href="${fe:url('/css/bootstrap.min.css')}" rel="stylesheet" type="text/css" /> <link href="${fe:url('/css/style.css')}" rel="stylesheet" type="text/css" />Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Jan 18 11:38:54 UTC 2025 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
/** * Tests for SmbFilenameFilter interface behaviors via simple implementations. * Each test creates a concrete filter to validate expected contract semantics * including normal operation, null handling, edge cases, and exception flow. */ @ExtendWith(MockitoExtension.class) class SmbFilenameFilterTest { @Mock SmbFile mockDir; /** * Happy-path: a filter that accepts any name. */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
import org.junit.jupiter.params.provider.MethodSource; import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; /** * Tests for SmbBasicFileInfo interface. * The tests exercise typical, edge, and null scenarios using a simple * implementation and a Mockito mock to verify interactions. */ @ExtendWith(MockitoExtension.class) public class SmbBasicFileInfoTest { /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/WinErrorTest.java
} @Test @DisplayName("Arrays: non-null, same length, and exact contents") void arrays_are_well_formed_and_match() { // Validate arrays existence and alignment (edge and structure checks) assertNotNull(WinError.WINERR_CODES, "WINERR_CODES should not be null"); assertNotNull(WinError.WINERR_MESSAGES, "WINERR_MESSAGES should not be null");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
assertTrue((request.getFlags() & SMB2_FLAGS_ASYNC_COMMAND) != 0, "Async flag should be set for non-zero asyncId"); } @Test @DisplayName("Test edge case with maximum values") void testMaximumValues() { // Given long maxMid = Long.MAX_VALUE; long maxAsyncId = Long.MAX_VALUE; int maxCredits = Integer.MAX_VALUE;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) class SmbUnsupportedOperationExceptionTest { // Provides a variety of messages including edge cases static Stream<String> messages() { return Stream.of("custom message", "", " ", "αβγ", "x".repeat(1000), null); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0)