- Sort Score
- Result 10 results
- Languages All
Results 1391 - 1400 of 1,595 for Tests (0.02 sec)
-
android/guava/src/com/google/common/io/Closer.java
private @Nullable Throwable thrown; @VisibleForTesting Closer(Suppressor suppressor) { this.suppressor = checkNotNull(suppressor); // checkNotNull to satisfy null tests } /** * Registers the given {@code closeable} to be closed when this {@code Closer} is {@linkplain * #close closed}. * * @return the given {@code closeable} */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
@Mock private Smb2WriteResponse mockWriteResponse; private SmbFileOutputStream outputStream; @BeforeEach void setUp() { // Common setup for most tests lenient().when(mockFileHandle.getTree()).thenReturn(mockTreeHandle); lenient().when(mockTreeHandle.getConfig()).thenReturn(mockConfig); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/util/PathValidatorTest.java
} @Test public void testInvalidUncPath() throws Exception { // Due to normalization removing duplicate backslashes, true UNC validation doesn't work // These tests validate current behavior where problematic paths are caught by other checks // Test invalid server name with dots - caught by directory traversal check assertThrows(SmbException.class, () -> {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0) -
docs/smb3-features/06-witness-protocol-design.md
} public boolean isWitnessServiceDiscovery() { return getBooleanProperty(WITNESS_SERVICE_DISCOVERY, true); } ``` ## 7. Testing Strategy ### 7.1 Unit Tests ```java @Test public void testWitnessRegistration() { WitnessRegistration registration = new WitnessRegistration( "\\\\server\\share", InetAddress.getByName("192.168.1.100"),
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 42K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java
import java.util.Map.Entry; import java.util.Set; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import org.jspecify.annotations.NullMarked; /** * Tests for {@code EnumBiMap}. * * @author Mike Bostock * @author Jared Levy */ @J2ktIncompatible // EnumBimap @GwtCompatible @NullMarked public class EnumBiMapTest extends TestCase { private enum Currency {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 11.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
import java.util.LinkedHashMap; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Tests for {@link Maps#transformValues} when the backing map's views have iterators that don't * support {@code remove()}. * * @author Jared Levy */ @GwtCompatible @NullMarkedRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
import jcifs.internal.CommonServerMessageBlockRequest; import jcifs.internal.NotifyResponse; import jcifs.internal.smb1.trans.nt.NtTransNotifyChange; import jcifs.internal.smb2.notify.Smb2ChangeNotifyRequest; /** * Tests for SmbWatchHandleImpl focusing on behavior and interactions. */ @ExtendWith(MockitoExtension.class) class SmbWatchHandleImplTest { @Mock SmbFileHandleImpl handle; @MockRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; /** * Test class for Smb2TreeDisconnectRequest functionality */ @DisplayName("Smb2TreeDisconnectRequest Tests") @ExtendWith(MockitoExtension.class) class Smb2TreeDisconnectRequestTest { private static final short SMB2_TREE_DISCONNECT = 0x0004; @Test @DisplayName("Should create request with correct command type")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
import jcifs.internal.smb2.ServerMessageBlock2Response; import jcifs.internal.util.SMBUtil; /** * Test class for Smb2TreeDisconnectResponse functionality */ @DisplayName("Smb2TreeDisconnectResponse Tests") class Smb2TreeDisconnectResponseTest extends BaseTest { private Configuration mockConfig; private Smb2TreeDisconnectResponse response; @BeforeEach void setUp() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.smb.SmbFile; /** * Integration tests for directory leasing functionality */ public class DirectoryLeasingIntegrationTest { @Mock private CIFSContext context; @Mock private Configuration config; @MockRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0)