- Sort Score
- Num 10 results
- Language All
Results 3081 - 3090 of 5,742 for text (0.17 seconds)
-
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import java.io.IOException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.smb1.dcerpc.DcerpcHandle; import jcifs.smb1.smb1.SmbException;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
} } socketHandler.awaitSuccess() } } @Test fun upgrade() { executeAndCheckUpgrade(upgradeRequest()) } @Test fun upgradeWithEmptyRequestBody() { executeAndCheckUpgrade(upgradeRequest().newBuilder().post(RequestBody.EMPTY).build()) } @Test fun upgradeWithNonEmptyRequestBody() { executeAndCheckUpgrade( upgradeRequest()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 08 21:07:01 GMT 2026 - 9.7K bytes - Click Count (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/JSpecifyNullUnmarkedChangesTest.kt
*/ package gradlebuild.binarycompatibility import org.junit.Test class JSpecifyNullUnmarkedChangesTest : AbstractBinaryCompatibilityTest() { private val nullableAnnotationName = "org.jspecify.annotations.Nullable" private val nullUnmarkedAnnotationName = "org.jspecify.annotations.NullUnmarked" @Test fun `from non-null returning to null-unmarked returning is breaking`() {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Oct 27 09:26:32 GMT 2025 - 5.1K bytes - Click Count (0) -
cmd/namespace-lock_test.go
package cmd import ( "runtime" "testing" "time" ) // WARNING: // // Expected source line number is hard coded, 35, in the // following test. Adding new code before this test or changing its // position will cause the line number to change and the test to FAIL // Tests getSource(). func TestGetSource(t *testing.T) { currentSource := func() string { return getSource(2) } gotSource := currentSource()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CrawlerLogHelperTest.java
} @Test public void test_log_method_exists() { // Test that the log method exists and can be called // We can't easily test the actual functionality without complex mocking // but we can verify the class structure assertNotNull(crawlerLogHelper); assertTrue(CrawlerLogHelper.class.getSuperclass().getSimpleName().contains("LogHelper")); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 1.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/platform/PlatformTest.kt
import okhttp3.testing.PlatformRule import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension class PlatformTest { @RegisterExtension var platform = PlatformRule() @Test fun alwaysBuilds() { Platform() } /** Guard against the default value changing by accident. */ @Test fun defaultPrefix() { assertThat(Platform().getPrefix()).isEqualTo("OkHttp")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/DfsReferralTest.java
import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import org.junit.jupiter.api.Test; import jcifs.DfsReferralData; /** * Tests for the DfsReferral class. */ class DfsReferralTest { /** * Test the constructor and the getData method. */ @Test void testConstructorAndGetData() { // Create a mock DfsReferralData objectCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.6K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManagerTest.java
public void setUp() throws Exception { super.setUp(); updateCheckManager = new DefaultUpdateCheckManager( new ConsoleLogger(Logger.LEVEL_DEBUG, "test"), new DefaultTrackingFileManager()); } @Test void testArtifact() throws Exception { ArtifactRepository remoteRepository = remoteRepository(); ArtifactRepository localRepository = localRepository();
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Dec 16 13:41:14 GMT 2025 - 9K bytes - Click Count (0) -
internal/kms/secret-key_test.go
} for i, test := range decryptKeyTests { dataKey, err := base64.StdEncoding.DecodeString(test.Plaintext) if err != nil { t.Fatalf("Test %d: failed to decode plaintext key: %v", i, err) } plaintext, err := KMS.Decrypt(t.Context(), &DecryptRequest{ Name: test.KeyID, Ciphertext: []byte(test.Ciphertext), AssociatedData: test.Context, }) if err != nil {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 2.9K bytes - Click Count (0) -
mockwebserver-junit4/README.md
MockWebServer for JUnit 4 ========================= This module integrates mockwebserver3.MockWebServer with JUnit 4. To use, first add this library as a test dependency: ``` testImplementation("com.squareup.okhttp3:mockwebserver3-junit4:5.3.0") ``` Then in tests annotated `@org.junit.Test`, you may declare a field with the `@Rule` annotation: ``` @Rule public final MockWebServerRule serverRule = new MockWebServerRule(); ```Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 706 bytes - Click Count (0)