- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for withGuestCrendentials (0.23 sec)
-
src/test/java/jcifs/context/CIFSContextWrapperTest.java
@Test void testWithGuestCrendentials() { // Test withGuestCrendentials() method CIFSContext mockNewContext = mock(CIFSContext.class); when(mockDelegate.withGuestCrendentials()).thenReturn(mockNewContext); assertEquals(mockNewContext, cifsContextWrapper.withGuestCrendentials()); verify(mockDelegate).withGuestCrendentials(); } @Test void testRenewCredentials_True() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
// Given CIFSContext newContext = mock(CIFSContext.class); when(mockContext.withGuestCrendentials()).thenReturn(newContext); // When CIFSContext context = mockContext.withGuestCrendentials(); // Then assertEquals(newContext, context); verify(mockContext).withGuestCrendentials(); } @Test @DisplayName("Should get context with specific credentials")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/main/java/jcifs/context/CIFSContextWrapper.java
@Override public CIFSContext withAnonymousCredentials() { return wrap(this.delegate.withAnonymousCredentials()); } @Override public CIFSContext withGuestCrendentials() { return wrap(this.delegate.withGuestCrendentials()); } @Override public boolean renewCredentials(final String locationHint, final Throwable error) { return this.delegate.renewCredentials(locationHint, error);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/main/java/jcifs/context/AbstractCIFSContext.java
return withCredentials(getDefaultCredentials()); } /** * {@inheritDoc} * * @see jcifs.CIFSContext#withGuestCrendentials() */ @Override public CIFSContext withGuestCrendentials() { return withCredentials(new NtlmPasswordAuthenticator(null, null, (String) null, AuthenticationType.GUEST)); } /** * {@inheritDoc} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/jcifs/CIFSContext.java
CIFSContext withAnonymousCredentials(); /** * Create a child context with guest credentials * * @return a child context using guest credentials */ CIFSContext withGuestCrendentials(); /** * Create a child context with specified credentials * * @param creds the credentials to use * @return a child context using using the given credentials */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/context/AbstractCIFSContextTest.java
assertEquals(mockCredentials, wrappedContext.getCredentials()); } @Test void testWithGuestCredentials() { CIFSContext wrappedContext = context.withGuestCrendentials(); assertNotNull(wrappedContext); assertTrue(wrappedContext instanceof CIFSContextCredentialWrapper); // Verify that the new context uses NtlmPasswordAuthenticator (guest)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0)