- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 450 for utimes (0.03 sec)
-
src/test/java/jcifs/NameServiceClientTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.net.InetAddress; import java.net.UnknownHostException; import org.junit.jupiter.api.BeforeEach;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
verify(smbFileHandle, times(1)).getTree(); } /** * Test isValid() when the handle is valid. */ @Test void testIsValid_whenValid() { when(smbFileHandle.isValid()).thenReturn(true); assertTrue(smbFileHandle.isValid(), "isValid should return true when the handle is valid."); verify(smbFileHandle, times(1)).isValid(); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
verify(transport, times(1)).acquire(); } @Test @DisplayName("close/release manage usage and transport lifecycle") void testReleaseLifecycle() { SmbSessionImpl session = newSession(); // First release drops usage to zero and releases transport session.release(); verify(transport, times(1)).release(); assertFalse(session.isInUse());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
handle.close(); // Assert // sendrecv for open is called once verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcSamrOpenDomain.class)); // sendrecv for close is called only once, even if close() is called multiple times verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcSamrCloseHandle.class)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java
// Act handle.close(); // Assert // Verify sendrecv was called once for open and once for close verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class)); verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarClose.class)); } @Test void close_shouldDoNothingIfAlreadyClosed() throws IOException { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
InOrder inOrder = inOrder(handle, fd, tree); inOrder.verify(handle, times(1)).ensureOpen(); inOrder.verify(fd, times(1)).getTree(); inOrder.verify(tree, times(1)).send(any(Smb2IoctlRequest.class), eq(RequestParam.NO_RETRY)); verify(fd, times(1)).close(); verify(tree, times(1)).close(); } @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
verify(file, times(1)).getAttributes(); } @Test public void testAcceptReturnsFalseWhenAttributesDoNotMatch() throws Exception { SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_HIDDEN); assertFalse(filter.accept(file), "Attributes not matching should be rejected"); verify(file, times(1)).getAttributes(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
assertArrayEquals(finalDigest, result); verify(mockMd5, times(1)).digest(); // First call for inner digest verify(mockMd5, times(2)).update(any(byte[].class)); // Once in constructor with ipad, once in engineDigest with opad verify(mockMd5, times(1)).digest(innerDigest); // Second call for final digest } } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
// Verify the method was called verify(mockResponse, times(2)).isReceived(); } @Test void testReceived() { // Call the method mockResponse.received(); // Verify that the method was called verify(mockResponse, times(1)).received(); } @Test void testClearReceived() { // Call the method
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
cmd/data-usage-utils.go
TotalFreeCapacity uint64 `json:"freeCapacity,omitempty"` // LastUpdate is the timestamp of when the data usage info was last updated. // This does not indicate a full scan. LastUpdate time.Time `json:"lastUpdate"` // Objects total count across all buckets ObjectsTotalCount uint64 `json:"objectsCount"` // Versions total count across all buckets VersionsTotalCount uint64 `json:"versionsCount"`
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 10 09:15:15 UTC 2024 - 6.4K bytes - Viewed (0)