- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 68 for happy (1.44 sec)
-
src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java
* * The tests exercise the public API: constructors, {@link #getNtStatus()}, * {@link #getRootCause()}, and {@link #toString()}. */ @ExtendWith(MockitoExtension.class) class SmbExceptionTest { /** * Happy path – constructor with a valid NT status code (0). */ @Test @DisplayName("Constructor 0 – NT_STATUS_SUCCESS") void testConstructorWithZeroCode() { SmbException ex = new SmbException(0, false);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
/** * Unit tests for {@link TransWaitNamedPipeResponse}. * * The implementation contains only trivial methods that return {@code 0} * or construct a string representation. The tests focus on: * * <ul> * <li>happy‑path behaviour</li> * <li>boundary arguments (e.g., negative indices, large values)</li> * <li>string representation containing the class name</li> * <li>null buffer handling</li> * </ul> */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
private SmbFileInputStream newStream() throws SmbException { // Constructor that avoids external I/O; stays in-memory when(mockTree.isSMB2()).thenReturn(true); // default SMB2 for simple happy-path return new SmbFileInputStream(mockFile, mockTree, mockHandle); } @BeforeEach void setUp() throws Exception { // Common, safe defaults for collaboratorsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
assertTrue(ex.getMessage().contains("Watch was broken by tree disconnect")); } // Happy path for SMB2: a response is received and the list is returned; tree is closed @Test @DisplayName("watch() SMB2 happy path returns notifications and closes tree") void watch_smb2_success_returnsList_andClosesTree() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbNamedPipeTest.java
return SingletonContext.getInstance(); } @Nested @DisplayName("Constructor behavior") class ConstructorTests { @ParameterizedTest @DisplayName("Accepts IPC$ URLs (happy path)") @ValueSource(strings = { "smb://server/IPC$/foo", "smb://server/IPC$/PIPE/foo" }) void constructsWithIpcShare(String url) throws Exception { // Arrange & Act
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
verify(treeConnection).ensureDFSResolved(resourceLoc); } @Test @DisplayName("hasCapability delegates and propagates exceptions") void hasCapabilityDelegates() throws Exception { // Happy path delegates; invalid case propagates SmbException when(treeConnection.hasCapability(123)).thenReturn(true); assertTrue(handle.hasCapability(123)); verify(treeConnection).hasCapability(123);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/StaticJAASConfigurationTest.java
import org.junit.jupiter.params.provider.ValueSource; import org.mockito.junit.jupiter.MockitoExtension; /** * Tests for StaticJAASConfiguration. * * Coverage goals: * - Happy path with default and custom options. * - Null/empty/ignored name parameter handling. * - Null options edge case. * - Repeated calls equivalence and instance separation.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
PULL_REQUESTS_ETIQUETTE.md
- [GitHub PR Tips](https://github.com/blog/1943-how-to-write-the-perfect-pull-request)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun May 25 16:32:03 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosErrorTest.java
Arguments.of(0x00500001, 0xc0000035), Arguments.of(0x007b0001, 0xc0000033), Arguments.of(0x00320001, 0xC00000BB)); } @ParameterizedTest @MethodSource("knownMappings") @DisplayName("Happy path: known DOS codes map to expected NTSTATUS") void mapsKnownDosCodesToNtStatus(int dosCode, int expectedNtStatus) { // Act int actual = findNtStatusOrMinusOne(dosCode); // Assert
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
public long getLastAccessTime() { return lastAccessTime; } @Override public long getSize() { return size; } } // --- Happy path: direct values are returned as provided --- @Test void returnsProvidedValues_happyPath() { // Arrange
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0)