- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 145 for simulate (0.11 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
// Test getInfo with compatible class response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION); // Simulate setting info using reflection SmbInfoAllocation allocation = new SmbInfoAllocation(); setInfoField(response, allocation); SmbInfoAllocation result = response.getInfo(SmbInfoAllocation.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java
// Test empty directory deletion logic File emptyDir = new File(tempDir, "empty"); emptyDir.mkdirs(); assertTrue(emptyDir.exists()); // Simulate the behavior of postVisitDirectory - delete empty directories if (emptyDir.isDirectory() && emptyDir.list().length == 0) { emptyDir.delete(); } assertFalse(emptyDir.exists());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 18.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
assertEquals(0, transport.getNumSessions()); } @Test @DisplayName("isDisconnected / isFailed reflect socket and state") void connectionStateChecks() throws Exception { // Arrange: simulate connected state and open socket setField(transport, "state", 3); // connected Socket s = mock(Socket.class); when(s.isClosed()).thenReturn(false); setField(transport, "socket", s);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/script/ScriptEngineTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java
// Second immediate call should use cache names = testFactory.getDataStoreNames(); assertEquals(2, names.length); assertEquals(1, loadCount[0]); // Should not increment // Simulate time passing (more than 60 seconds) testFactory.lastLoadedTime = System.currentTimeMillis() - 61000L; // Should reload after cache expiry names = testFactory.getDataStoreNames();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
// Test that #INCLUDE directive is handled (even if the include fails) String content = "#INCLUDE \\\\server\\share\\lmhosts\n" + "192.168.1.100 MAINHOST\n"; // Mock SmbFileInputStream to simulate include file try (MockedConstruction<SmbFileInputStream> mockedConstruction = Mockito.mockConstruction(SmbFileInputStream.class, (mock, context) -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/FessConfigImplTest.java
} } // Test property filter returning null simulation public void test_get_filterReturnsNull() { // The filter.null property is configured to simulate null filter behavior try { fessConfig.get("filter.null"); fail("Should throw exception when property is not found"); } catch (ConfigPropertyNotFoundException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TestLockingTest.java
void urlParameterParsing() { String expectedUrl = "smb://server/share/test.txt"; TestLocking t = new TestLocking(); // Simulate argument parsing String[] args = { "-t", "2", "-i", "5", "-d", "100", expectedUrl }; for (int ai = 0; ai < args.length; ai++) { if (args[ai].equals("-t")) { ai++;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0)