- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getPathConsumed (0.11 sec)
-
src/test/java/jcifs/DfsReferralDataTest.java
// Given int pathConsumed = 10; when(mockReferralData.getPathConsumed()).thenReturn(pathConsumed); // When int result = mockReferralData.getPathConsumed(); // Then assertEquals(pathConsumed, result); verify(mockReferralData).getPathConsumed(); } @Test @DisplayName("Should get path") void testGetPath() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/DfsReferralData.java
/** * Get the number of characters from the UNC path that were consumed by this referral * * @return the number of characters from the unc path that were consumed by this referral */ int getPathConsumed(); /** * Get the replacement path for this referral * * @return the replacement path for this referal */ String getPath(); /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralResponseBuffer.java
private int tflags; private Referral[] referrals; /** * Get the number of characters consumed from the path * * @return the pathConsumed */ public final int getPathConsumed() { return this.pathConsumed; } /** * Get the number of referrals in the response * * @return the numReferrals */ public final int getNumReferrals() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
} @Test void testCache_ValidPath() { // Scenario: A valid referral is cached. DfsReferralDataInternal mockReferral = mock(DfsReferralDataInternal.class); when(mockReferral.getPathConsumed()).thenReturn(15); // e.g., "\\\\server\\share".length() when(mockReferral.next()).thenReturn(mockReferral); // Simple loop for the do-whileRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0)