- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 90 for happy (0.02 seconds)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java
} catch (ParseException e) { throw new IllegalArgumentException(e); } } }; @Test void happy() { InvokerRequest invokerRequest = subject.parseInvocation(ParserRequest.mvn(Arrays.asList("-e", "-X"), mock(MessageBuilderFactory.class)) .cwd(Path.of(System.getProperty("userDir")))
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 4.2K bytes - Click Count (0) -
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
assertTrue(transport.isSigningEnforced()); } @Test @DisplayName("unwrap returns this for compatible types and throws otherwise") void unwrapBehavior() { // Happy paths SmbTransport asIface = transport.unwrap(SmbTransport.class); assertSame(transport, asIface); SmbTransportInternal asInternal = transport.unwrap(SmbTransportInternal.class);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
f.setAccessible(true); f.set(target, value); } catch (Exception e) { throw new RuntimeException(e); } } @Test @DisplayName("getters and basic state (happy path)") void testGettersAndState() { SmbSessionImpl session = newSession(); // Basic getters assertSame(configuration, session.getConfig(), "getConfig delegates to transportContext");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (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> */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/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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/AbstractVersionTransformation.java
import org.codehaus.plexus.logging.AbstractLogEnabled; /** * Describes a version transformation during artifact resolution. * * TODO try and refactor to remove abstract methods - not particular happy about current design */ @Deprecated public abstract class AbstractVersionTransformation extends AbstractLogEnabled implements ArtifactTransformation { @InjectCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 5.2K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
assertEquals(0L, response.getOffset(), "Offset should be initialized to 0"); } /* ------------------------------------------------------------------ */ /* 2. Parameter word reading - happy path & edge cases */ /* ------------------------------------------------------------------ */ /** * Provides test cases for {@link SmbComSeekResponse#readParameterWordsWireFormat(byte[], int)}.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.1K bytes - Click Count (0)