- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for testReset (0.05 sec)
-
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
out.close(); assertThrows(IOException.class, () -> out.write(42)); // Verify that write had no effect assertTrue(Arrays.equals(data, source.read())); out.reset(); } public void testReset() throws Exception { byte[] data = newPreFilledByteArray(100); FileBackedOutputStream out = new FileBackedOutputStream(Integer.MAX_VALUE); ByteSource source = out.asByteSource(); out.write(data);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java
assertEquals(0, netServerEnum2.setupCount); assertEquals(5000, netServerEnum2.timeout); } /** * Test the reset method. */ @Test void testReset() { String lastName = "LAST_NAME"; netServerEnum2.reset(0, lastName); assertEquals(lastName, netServerEnum2.lastName); } /** * Test the writeSetupWireFormat method. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionTest.java
transaction.txn_buf = new byte[1024]; transaction.maxBufferSize = 1024; } @Test @DisplayName("Test reset() method resets transaction state") void testReset() { // Modify state transaction.nextElement(); // Reset transaction.reset(); // Verify state is reset
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
out.close(); assertThrows(IOException.class, () -> out.write(42)); // Verify that write had no effect assertTrue(Arrays.equals(data, source.read())); out.reset(); } public void testReset() throws Exception { byte[] data = newPreFilledByteArray(100); FileBackedOutputStream out = new FileBackedOutputStream(Integer.MAX_VALUE); ByteSource source = out.asByteSource(); out.write(data);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java
assertEquals(SmbComTransaction.TRANS2_QUERY_FS_INFORMATION, transaction.getSubCommand()); } @Test @DisplayName("Test reset functionality") void testReset() { // Reset should not throw exception assertDoesNotThrow(() -> transaction.reset()); // Transaction should be ready for reuse assertTrue(transaction.hasMoreElements()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
// Expected } assertEquals(SimpleCircuitBreaker.State.OPEN, circuitBreaker.getState()); } @Test @DisplayName("Test reset functionality") void testReset() { // Open the circuit circuitBreaker.tripBreaker(); assertEquals(SimpleCircuitBreaker.State.OPEN, circuitBreaker.getState()); // Reset circuitBreaker.reset();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
response.setTestErrorCode(0); response.hasMore = false; assertFalse(response.hasMoreElements()); } @Test @DisplayName("Test reset functionality") void testReset() { // Reset should not throw exception assertDoesNotThrow(() -> response.reset()); } @Test @DisplayName("Test encode operation") void testEncode() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
response.nextElement(); // Can still have more elements assertTrue(response.hasMoreElements()); } @Test @DisplayName("Test reset method") void testReset() { // Set some values response.setDataCount(50); // Call reset response.reset(); // After reset, hasMore should be true
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
messageBlock.setSessionId(sessionId); verify(messageBlock).setSessionId(sessionId); } } @Test @DisplayName("Test reset method") void testReset() { // Given doNothing().when(messageBlock).reset(); // When messageBlock.reset(); // Then verify(messageBlock).reset(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0)