Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testExists (0.06 sec)

  1. src/test/java/jcifs/SmbResourceTest.java

                assertTrue(type >= 0, "Type should be non-negative");
            }
    
            @Test
            @DisplayName("exists should indicate resource existence")
            void testExists() throws CIFSException {
                // Given
                when(mockResource.exists()).thenReturn(true);
    
                // When
                boolean exists = mockResource.exists();
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileTest.java

                doReturn(mockTreeHandle).when(smbFile).ensureTreeConnected();
                when(mockTreeHandle.getConfig()).thenReturn(mockConfig);
            }
    
            @Test
            void testExists() throws SmbException, CIFSException {
                // Arrange
                when(mockTreeHandle.isSMB2()).thenReturn(false);
                SmbComQueryInformationResponse response = mock(SmbComQueryInformationResponse.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
Back to top