- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for testGetNameServiceClient (0.18 seconds)
-
src/test/java/jcifs/context/CIFSContextWrapperTest.java
assertFalse(cifsContextWrapper.renewCredentials(locationHint, error)); verify(mockDelegate).renewCredentials(locationHint, error); } @Test void testGetNameServiceClient() { // Test getNameServiceClient() method NameServiceClient mockNameServiceClient = mock(NameServiceClient.class); when(mockDelegate.getNameServiceClient()).thenReturn(mockNameServiceClient);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.7K bytes - Click Count (0) -
src/test/java/jcifs/CIFSContextTest.java
// Then assertEquals(mockConfig, config); verify(mockContext).getConfig(); } @Test @DisplayName("Should get NameServiceClient") void testGetNameServiceClient() { // Given NameServiceClient mockClient = mock(NameServiceClient.class); when(mockContext.getNameServiceClient()).thenReturn(mockClient); // WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.8K bytes - Click Count (0) -
src/test/java/jcifs/context/BaseContextTest.java
assertSame(dfs, context.getDfs(), "Should return same instance on multiple calls"); } @Test @DisplayName("getNameServiceClient should return initialized name service client") void testGetNameServiceClient() { // When NameServiceClient nameServiceClient = context.getNameServiceClient(); // Then assertNotNull(nameServiceClient, "Name service client should not be null");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 15.1K bytes - Click Count (0)