- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 1,103 for veriyi (0.05 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java
@Nested @DisplayName("Interaction – verify that file methods are invoked") class Interaction { @Test void verifiesPathInvocation() throws Exception { SmbFile mockFile = mock(SmbFile.class); when(mockFile.getPath()).thenReturn("/share/dir/"); RecordingFilter filter = new RecordingFilter(); filter.accept(mockFile); // Verify the filter stored the referenceCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
// Verify bytes written (encode returns 40, which includes 4 padding bytes) assertEquals(40, bytesWritten); // Create a new FileBasicInfo and decode to verify encoding FileBasicInfo decoded = new FileBasicInfo(); decoded.decode(buffer, startIndex, 36); // decode only reads 36 bytes // Verify the values match after round-tripCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
} } }; assertDoesNotThrow(() -> networkExplorer.init(servletConfig)); // Verify parameter reading verify(servletConfig).getInitParameter("jcifs.smb.client.domain"); verify(servletConfig).getInitParameter("jcifs.http.enableBasic"); } /** * Test doGet with no authentication - should return 401 */ @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 21.2K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java
assertTrue(result.success(), "Orchestrator should succeed"); // Verify only applicable strategy was executed verify(mockStrategies.get(0)).apply(Mockito.eq(context), Mockito.any()); verify(mockStrategies.get(1), Mockito.never()).apply(Mockito.any(), Mockito.any()); verify(mockStrategies.get(2), Mockito.never()).apply(Mockito.any(), Mockito.any()); } @TestCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 12.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
int totalBytes = copy.encode(buffer, 0); // Then assertEquals(HEADER_SIZE + 20 + 24 + 22, totalBytes); verify(mockChunk1).encode(buffer, HEADER_SIZE); verify(mockChunk2).encode(buffer, HEADER_SIZE + 20); verify(mockChunk3).encode(buffer, HEADER_SIZE + 20 + 24); } }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 23.1K bytes - Click Count (0) -
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 {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri May 12 18:12:42 GMT 2023 - 3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.clearInvocations; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.verifyNoInteractions; import static org.mockito.Mockito.when; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ServletRuntimeExceptionTest.java
ServletRuntimeException runtimeException = new ServletRuntimeException(servletException); // Verify that the cause is correctly set assertNotNull(runtimeException); assertEquals(servletException, runtimeException.getCause()); // Verify that the message is preserved from the cause assertTrue(runtimeException.getMessage().contains(ServletException.class.getName()));
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java
MsrpcLsarOpenPolicy2 msrpcLsarOpenPolicy2 = new MsrpcLsarOpenPolicy2(server, access, mockPolicyHandle); // Then // Verify that the super constructor is called with correct arguments // Note: Directly verifying super constructor calls is not straightforward in JUnit/Mockito. // We verify the effects of the super constructor by checking the fields of the created object. // Assert object_attributes fields
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.1K bytes - Click Count (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() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8K bytes - Click Count (0)