- Sort Score
- Result 10 results
- Languages All
Results 471 - 480 of 4,468 for void (2.24 sec)
-
android/guava-tests/test/com/google/common/io/CloserTest.java
* * @author Colin Decker */ @NullUnmarked public class CloserTest extends TestCase { private TestSuppressor suppressor; @Override protected void setUp() throws Exception { suppressor = new TestSuppressor(); } public void testNoExceptionsThrown() throws IOException { Closer closer = new Closer(suppressor); TestCloseable c1 = closer.register(TestCloseable.normal());Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 11.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
} @Test void testHandleFailure() { IOException error = new IOException("Connection failed"); failover.handleFailure(failedChannel, error); assertEquals(ChannelState.FAILED, failedChannel.getState()); verify(mockChannelManager).removeChannel(failedChannel); } @Test void testFailoverStateCreation() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java
@Test @DisplayName("constructor accepts null andx") void constructorWithNullAndx() { SmbComLogoffAndX msg = new SmbComLogoffAndX(null); assertNotNull(msg, "Message must not be null after construction"); } @ParameterizedTest @ValueSource(ints = { 0, 1, 5, -1, 10 }) @DisplayName("writeParameterWordsWireFormat always returns 0") void writeParameterWordsWireFormatReturnsZero(int index) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
public void testGet_sortedSet() { testGetOnAbc(ImmutableSortedSet.of("b", "c", "a")); } public void testGet_emptySortedSet() { testGetOnEmpty(ImmutableSortedSet.<String>of()); } public void testGet_iterable() { testGetOnAbc(ImmutableSet.of("a", "b", "c")); } public void testGet_emptyIterable() { testGetOnEmpty(new HashSet<String>()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 45.6K bytes - Viewed (0) -
src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java
import jcifs.internal.smb2.persistent.Smb2HandleCapabilities; /** * Test class for durable handle create context implementations */ public class DurableHandleContextTest { @Test public void testDurableHandleRequest() { DurableHandleRequest request = new DurableHandleRequest(); assertEquals("DHnQ", new String(request.getName())); assertTrue(request.size() > 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 4.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/CycleDetectingLockFactoryBenchmark.java
detectingLocks[i] = factory.newReentrantLock("Lock" + i); } } @Benchmark void unorderedPlainLocks(int reps) { lockAndUnlock(new ReentrantLock(), reps); } @Benchmark void unorderedCycleDetectingLocks(int reps) { lockAndUnlock(factory.newReentrantLock("foo"), reps); } private static void lockAndUnlock(Lock lock, int reps) { for (int i = 0; i < reps; i++) { lock.lock();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Java8Compatibility.java
@GwtIncompatible final class Java8Compatibility { static void clear(Buffer b) { b.clear(); } static void flip(Buffer b) { b.flip(); } static void limit(Buffer b, int limit) { b.limit(limit); } static void mark(Buffer b) { b.mark(); } static void position(Buffer b, int position) { b.position(position); } static void reset(Buffer b) { b.reset(); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java
} // Unconditional setCount no-ops. private void assertZeroToZero() { assertSetCount(e3(), 0); } private void assertOneToOne() { assertSetCount(e0(), 1); } private void assertThreeToThree() { initThreeCopies(); assertSetCount(e0(), 3); } @CollectionFeature.Require(SUPPORTS_ADD) public void testSetCount_zeroToZero_addSupported() { assertZeroToZero();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
byte[] buf = new byte[length]; Arrays.fill(buf, (byte) 0xFF); return buf; } @Test @DisplayName("constructor initialises command and parameters correctly") void testConstructorInitialisesFields() throws Exception { int level = 42; Trans2QueryFSInformation cmd = new Trans2QueryFSInformation(level); // constants are defined on SmbComTransaction, inherited via
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/StaticJAASConfigurationTest.java
private static final String EXPECTED_LOGIN_MODULE = "com.sun.security.auth.module.Krb5LoginModule"; @Test @DisplayName("Default constructor yields REQUIRED Krb5 entry with empty options") void defaultConstructor_producesRequiredKrb5EntryWithEmptyOptions() { // Arrange StaticJAASConfiguration cfg = new StaticJAASConfiguration(); // Act
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0)