- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 68 for Scenarios (0.58 sec)
-
src/test/java/jcifs/smb/SmbTreeInternalTest.java
@Test @DisplayName("send with explicit null varargs propagates exception from implementation") void send_nullVarargsArray_throws() throws Exception { // Arrange: passing explicit null vararg array is edge scenario when(tree.send(eq(request), isNull())).thenThrow(new CIFSException("null params")); // Act + AssertRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
void testCapacityEdgeValues(long capacity) { when(mockAllocInfo.getCapacity()).thenReturn(capacity); assertEquals(capacity, mockAllocInfo.getCapacity()); } /** * Null pointer scenario – calls on a null reference should raise * {@link NullPointerException}. This test is defensive; in real code it * would likely be handled elsewhere. */ @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java
// Test close without any file ResponseData data = new ResponseData(); data.close(); // Should not throw exception } public void test_complexScenario() { // Test complex scenario with multiple operations ResponseData data = new ResponseData(); // Set various properties data.setUrl("https://example.com/page"); data.setHttpStatusCode(200);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 14.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/builder/RequestDataBuilderTest.java
// data1 should also be modified (same object) assertEquals("https://modified.com", data1.getUrl()); } public void test_complexScenarioWithGet() { // Test complex scenario with GET method RequestData data = RequestDataBuilder.newRequestData().get().url("https://api.example.com/users/123").weight(0.8f).build(); assertEquals(Method.GET, data.getMethod());Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java
// Initial update - should mark as changed entry.updateChild(childName, 1024L, 1000L, false, 0x20, 500L, 800L); assertTrue(entry.hasChanges()); // Clear changes to test next scenario entry.markComplete(); assertFalse(entry.hasChanges()); // Update with same values - should not mark as changed (no actual change)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 8.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/UrlQueueImplTest.java
String result = queue.toString(); assertNotNull(result); assertTrue(result.contains("UrlQueueImpl")); } public void test_complexScenario() { // Test complex scenario with all fields UrlQueueImpl<Long> queue = new UrlQueueImpl<>(); Long id = 999L; String sessionId = "crawl-session-123"; String method = "POST";Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 9.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java
Handler handler = new Handler(); Handler.GcsURLConnection conn = (Handler.GcsURLConnection) handler.openConnection(url); // Ensure environment variables are not set (in real scenario) // In this test, we expect IOException when project ID is blank try { conn.connect(); fail("Should throw IOException when project ID is not set");
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
// Act SmbSession result = handle.getSession(); // Assert assertNull(result); verify(handle).getSession(); } @Test @DisplayName("Scenario: verify interaction order across multiple calls") void verifyInteractionOrder() throws Exception { // Arrange: stub simple returns when(handle.hasCapability(anyInt())).thenReturn(true);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
assertEquals(State.CLOSED, circuitBreaker.getState(), "Circuit should be CLOSED after success threshold"); // Test max attempts in half-open with failure scenario circuitBreaker.trip(); // Open again Thread.sleep(1100); // Wait for reset // First attempt transitions to HALF_OPEN try {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/ServerDataTest.java
} } /** * Test typical server configuration scenario */ @Test @DisplayName("Test typical server configuration scenario") public void testTypicalServerConfiguration() { // Given - typical SMB server configuration serverData.sflags = (byte) 0x98;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17K bytes - Viewed (0)