- Sort Score
- Num 10 results
- Language All
Results 961 - 970 of 3,380 for Rtest (0.12 seconds)
-
src/test/java/jcifs/pac/PacGroupTest.java
} /** * Test method for {@link jcifs.pac.PacGroup#getId()}. */ @Test void testGetId() { // Test the getId method assertEquals(mockSid, pacGroup.getId(), "getId() should return the correct SID."); } /** * Test method for {@link jcifs.pac.PacGroup#getAttributes()}. */ @Test void testGetAttributes() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.Configuration; import jcifs.internal.SMBProtocolDecodingException; /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
} @Test @DisplayName("Constructor: invalid mode throws IllegalArgumentException") void constructor_invalidMode_throws() { SmbFile file = mock(SmbFile.class); assertThrows(IllegalArgumentException.class, () -> new SmbRandomAccessFile(file, "badmode")); } @Test @DisplayName("open(): acquires and releases handle (no I/O)")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java
/** * Edge case – constructor using the winerr flag. */ @Test @DisplayName("Winerr code 123 – message equals 123") void testConstructorWithWinerr() { SmbException ex = new SmbException(123, true); assertEquals("123", ex.getMessage()); assertEquals(123, ex.getNtStatus()); } /** * Parameterised test covering many error codes. * - Error code 0 returns 0 (NT_STATUS_SUCCESS)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java
} @Test void testConstructor() { // Test if the offsets are initialized correctly by the constructor. assertEquals(69, smbComNtTransaction.primarySetupOffset, "primarySetupOffset should be initialized to 69"); assertEquals(51, smbComNtTransaction.secondaryParameterOffset, "secondaryParameterOffset should be initialized to 51"); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java
* * @param <C> the type of the container * @param <E> the type of the container's contents * @author George van den Driessche */ @GwtCompatible @Ignore("test runners must not instantiate and run this directly, only via suites we build") // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") @NullMarked
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 8.9K bytes - Click Count (0) -
android-test/src/androidDeviceTest/java/okhttp/android/test/StrictModeTest.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp.android.test import android.os.StrictMode import android.os.StrictMode.ThreadPolicy import android.os.strictmode.Violation import androidx.test.filters.SdkSuppress import assertk.assertThat import assertk.assertions.hasSize import assertk.assertions.isEmpty import assertk.assertions.isEqualTo
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 26 07:38:51 GMT 2026 - 2.2K bytes - Click Count (0) -
guava-tests/test/com/google/thirdparty/publicsuffix/PublicSuffixTrieTest.java
import static com.google.common.truth.Truth.assertThat; import com.google.common.collect.ImmutableList; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @RunWith(JUnit4.class) public final class PublicSuffixTrieTest { @Test public void testFindSuffixIndex() { // Tests based on PublicSuffixPatterns.TRIE which is generated from PSL. // registry: com, co.ukCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 21:21:59 GMT 2026 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
verify(response).flushBuffer(); } /** * Test doGet with NTLM authentication for directory listing * This test verifies the authentication flow without actual network operations */ @Test void testDoGet_DirectoryListing() throws Exception { // Create a test-specific NetworkExplorer that mocks file operations networkExplorer = new NetworkExplorer() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 21.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt
.isEqualTo("squareup.com") } @Test fun fragmentNonAscii() { val url = "http://host/#Σ".toHttpUrl() assertThat(url.toUri().toString()).isEqualTo("http://host/#Σ") } @Test fun fragmentPercentEncodedNonAscii() { val url = "http://host/#%C2%80".toHttpUrl() assertThat(url.toUri().toString()).isEqualTo("http://host/#%C2%80") } @Test fun fragmentPercentEncodedPartialCodePoint() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 12K bytes - Click Count (0)