- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for testNext (0.32 sec)
-
src/test/java/jcifs/DfsReferralDataTest.java
// Then assertEquals(expiration, result); verify(mockReferralData).getExpiration(); } @Test @DisplayName("Should get next referral") void testNext() { // Given DfsReferralData nextReferral = mock(DfsReferralData.class); when(mockReferralData.next()).thenReturn(nextReferral); // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
assertDoesNotThrow(() -> concreteImplementation.stripPathConsumed(0)); } @Test @DisplayName("Should return next referral data") void testNext() { // Test with mock when(mockReferralData.next()).thenReturn(mockReferralData); DfsReferralDataInternal next = mockReferralData.next(); assertSame(mockReferralData, next);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
assertEquals(second, third.next()); assertEquals(referralData, second.next()); } @Test @DisplayName("Should handle next() correctly") void testNext() { DfsReferralDataImpl second = new DfsReferralDataImpl(); referralData.append(second); DfsReferralDataImpl next = referralData.next(); assertSame(second, next);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/FieldUtilTest.java
/** */ public static final int INT_DATA = 987654321; /** */ public static final String STRING_DATA = "Hello World!"; /** * @throws Exception */ @Test public void testGet() throws Exception { final Field field = getClass().getField("objectField"); final Integer testData = Integer.valueOf(123); FieldUtil.set(field, this, testData);Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
mockContext.withCredentials(mock(Credentials.class)); mockContext.renewCredentials("hint", new Exception()); }); } @Test @DisplayName("Should get SmbResource") void testGet() throws CIFSException { // Given String url = "smb://server/share/file"; SmbResource mockResource = mock(SmbResource.class); when(mockContext.get(url)).thenReturn(mockResource);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
assertFalse(concreteResponse.isVerifyFailed()); // Test exception handling assertNull(concreteResponse.getException()); Exception testEx = new RuntimeException("Test"); concreteResponse.exception(testEx); assertEquals(testEx, concreteResponse.getException()); // Test expiration assertNull(concreteResponse.getExpiration());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
} @Test @DisplayName("Test read string length without termination throws exception") void testReadStringLengthNoTermination() { byte[] buffer = "TestTest".getBytes(); assertThrows(RuntimeCIFSException.class, () -> { testBlock.readStringLength(buffer, 0, 3); }); } } @NestedRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0)