- Sort Score
- Num 10 results
- Language All
Results 841 - 850 of 4,279 for new1 (0.02 seconds)
-
src/test/java/jcifs/internal/witness/WitnessClientTest.java
// Create a test witness client that uses our mock RPC client TestWitnessClient client = new TestWitnessClient(witnessServer, mockContext, mockRpc); TestNotificationListener listener = new TestNotificationListener(); CompletableFuture<WitnessRegistration> future = client.registerForNotifications("\\\\server\\share", serverAddress, listener);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 9.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessClient.java
this.registrations = new ConcurrentHashMap<>(); this.listeners = new ConcurrentHashMap<>(); this.asyncNotifyTasks = new ConcurrentHashMap<>(); this.scheduler = Executors.newScheduledThreadPool(3); // Increased for async notifications this.rpcClient = rpcClient; // Schedule periodic tasks schedulePeriodicTasks(); } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 20.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/dtyp/ACETest.java
private ACE ace; private byte[] testBuffer; @BeforeEach void setUp() { ace = new ACE(); } @Test @DisplayName("Test decode with allow ACE") void testDecodeAllowACE() throws Exception { // Prepare test data - Allow ACE testBuffer = new byte[100]; testBuffer[0] = 0x00; // Allow ACECreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java
// Prepare minimal buffer byte[] buffer = new byte[24]; // Test with offset 0 int bytesDecoded = response.decode(buffer, 0, 24); assertEquals(24, bytesDecoded, "Should return 24 bytes consumed from offset 0"); // Test with different offset response = new ValidateNegotiateInfoResponse(); buffer = new byte[50]; bytesDecoded = response.decode(buffer, 10, 24);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
assertFalse(future.set(new Foo())); assertFalse(future.setException(new Exception("bar"))); assertFalse(future.setFuture(SettableFuture.create())); // Check that the future has been set properly. assertFalse(future.isDone()); assertFalse(future.isCancelled()); assertThrows(TimeoutException.class, () -> future.get(0, MILLISECONDS)); FooChild value = new FooChild(); nested.set(value);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.4K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java
final ConnectionSpec spec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) .cipherSuites(customCipherSuites.toArray(new CipherSuite[0])) .build(); X509TrustManager trustManager = defaultTrustManager(); SSLSocketFactory sslSocketFactory = defaultSslSocketFactory(trustManager); SSLSocketFactory customSslSocketFactory = new DelegatingSSLSocketFactory(sslSocketFactory) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Mar 14 21:57:42 GMT 2019 - 6.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java
return asStream(id).contentTypeOctetStream().stream(out -> { try (final ByteArrayOutputStream baos = new ByteArrayOutputStream()) { ComponentUtil.getSystemProperties().store(baos, id); try (final InputStream in = new ByteArrayInputStream(baos.toByteArray())) { out.write(in); } }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 6.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/misc/Base64UtilTest.java
final byte[] utf8Decoded = Base64Util.decode(utf8Encoded); assertEquals("Round trip should preserve UTF-8 data", utf8Text, new String(utf8Decoded, "UTF-8")); // Test with binary data final byte[] binaryData = new byte[] { 0, 1, 2, 3, 127, (byte) 128, (byte) 255 }; final String binaryEncoded = Base64Util.encode(binaryData); final byte[] binaryDecoded = Base64Util.decode(binaryEncoded);
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/disni/DisniRdmaProvider.java
// endpointGroup = new RdmaActiveEndpointGroup<DisniRdmaEndpoint>( // 1000, false, 128, 4, 128); // endpointGroup.init(new DisniRdmaEndpointFactory()); // For now, we'll just create placeholder objects endpointGroup = new Object(); endpoint = new Object(); initialized = true;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/opensearch/config/exentity/JobLogTest.java
} @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); ComponentUtil.register(new SystemHelper(), "systemHelper"); } @Test public void test_defaultConstructor() { final JobLog jobLog = new JobLog(); assertNotNull(jobLog); assertNull(jobLog.getId()); } @Test public void test_constructorWithScheduledJob() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 11:55:54 GMT 2026 - 3.7K bytes - Click Count (0)