- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 1,009 for verify (0.14 sec)
-
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();
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/smb/SmbFileFilterTest.java
// Act boolean result = filter.accept(smbFile); // Assert assertTrue(result, "Directory should be accepted"); verify(smbFile, times(1)).isDirectory(); verify(smbFile, never()).getName(); verifyNoMoreInteractions(smbFile); } @Test @DisplayName("accept: returns false for non-directories")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/NetbiosNameTest.java
assertEquals(testScope, mockNetbiosName.getScope()); assertEquals(testType, mockNetbiosName.getNameType()); // Verify all methods were called verify(mockNetbiosName).getName(); verify(mockNetbiosName).getScope(); verify(mockNetbiosName).getNameType(); } @Test @DisplayName("Should handle interface method contracts") void testMethodContracts() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/CredentialsTest.java
assertTrue(isAnonymous); verify(mockCredentials).isAnonymous(); } @Test @DisplayName("Should check for guest credentials") void testIsGuest() { // Given when(mockCredentials.isGuest()).thenReturn(true); // When boolean isGuest = mockCredentials.isGuest(); // Then assertTrue(isGuest); verify(mockCredentials).isGuest(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ds/DataStoreTest.java
params.put("key2", "value2"); IndexUpdateCallback callback = new TestIndexUpdateCallback(); // Execute store method dataStore.store(config, callback, params); // Verify store was called assertTrue(storeCalled.get()); assertNotNull(capturedConfig.get()); assertEquals("test-config", capturedConfig.get().getName()); assertNotNull(capturedCallback.get());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 13K bytes - Viewed (0) -
cmd/signature-v4-parser.go
func parsePreSignV4(query url.Values, region string, stype serviceType) (psv preSignValues, aec APIErrorCode) { // verify whether the required query params exist. aec = doesV4PresignParamsExist(query) if aec != ErrNone { return psv, aec } // Verify if the query algorithm is supported or not. if query.Get(xhttp.AmzAlgorithm) != signV4Algorithm { return psv, ErrInvalidQuerySignatureAlgo }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
assertEquals(0x01, SMBUtil.readInt4(buffer, headerStart + 44)); // Write flags // Verify data offset is written correctly int dataOffsetValue = SMBUtil.readInt2(buffer, headerStart + 2); assertEquals(headerStart - 0 + 48, dataOffsetValue); // Assuming getHeaderStart() returns 0 // Verify data is copied
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java
} /** * Verify that the listener completes in a reasonable amount of time, and Asserts that the future * returns the expected data. * * @throws Throwable if the listener isn't called or if it resulted in a throwable or if the * result doesn't match the expected value. */ public void assertSuccess(Object expectedData) throws Throwable {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri May 12 18:12:42 UTC 2023 - 3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryRequestTest.java
doReturn(10).when((NameServicePacket) request).writeQuestionSectionWireFormat(any(byte[].class), anyInt()); int result = request.writeBodyWireFormat(dst, dstIndex); // Verify that writeQuestionSectionWireFormat was called verify((NameServicePacket) request, times(1)).writeQuestionSectionWireFormat(dst, dstIndex); assertEquals(10, result); } @Test void testReadBodyWireFormat() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
// Call the decode method with the mocked NdrBuffer ndrHyper.decode(mockNdrBuffer); // Verify that dec_ndr_hyper was called exactly once verify(mockNdrBuffer, times(1)).dec_ndr_hyper(); verifyNoMoreInteractions(mockNdrBuffer); // Verify that the NdrHyper object's value was updated correctlyRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0)