Search Options

Results per page
Sort
Preferred Languages
Advance

Results 851 - 860 of 1,844 for test2 (0.02 sec)

  1. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFuturesCatchingSpecialization.java

      /*
       * In the GWT versions of the methods (below), every exceptionType parameter is required to be
       * Class<Throwable>. To handle only certain kinds of exceptions under GWT, you'll need to write
       * your own instanceof tests.
       */
    
      public static <V extends @Nullable Object> ListenableFuture<V> catching(
          ListenableFuture<? extends V> input,
          Class<Throwable> exceptionType,
          Function<? super Throwable, ? extends V> fallback,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 24 17:45:05 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

    import java.util.concurrent.CancellationException;
    import java.util.concurrent.ExecutionException;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** Unit tests for {@link Futures#getDone}. */
    @GwtCompatible
    public class FuturesGetDoneTest extends TestCase {
      public void testSuccessful() throws ExecutionException {
        assertThat(getDone(immediateFuture("a"))).isEqualTo("a");
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ServiceTest.java

    import static com.google.common.util.concurrent.Service.State.STOPPING;
    import static com.google.common.util.concurrent.Service.State.TERMINATED;
    
    import java.util.Locale;
    import junit.framework.TestCase;
    
    /** Unit tests for {@link Service} */
    public class ServiceTest extends TestCase {
    
      /** Assert on the comparison ordering of the State enum since we guarantee it. */
      public void testStateOrdering() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

    import org.junit.Rule;
    import org.junit.Test;
    import org.junit.rules.ExpectedException;
    
    /**
     * @author shot
     * @author manhole
     */
    public class EnumerationIteratorTest {
    
        /**
         * @see org.junit.rules.ExpectedException
         */
        @Rule
        public ExpectedException exception = ExpectedException.none();
    
        /**
         *
         */
        @Test
        public void testEnumerationIterator() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. 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(context.TODO(), &DecryptRequest{
    			Name:           test.KeyID,
    			Ciphertext:     []byte(test.Ciphertext),
    			AssociatedData: test.Context,
    		})
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. .teamcity/src/main/kotlin/promotion/StartReleaseCycleTest.kt

            name = "Start Release Cycle Test"
            description = "Test for Start Release Cycle pipeline"
    
            steps {
                gradleWrapper {
                    name = "PromoteTest"
                    tasks = "clean promoteStartReleaseCycle"
                    useGradleWrapper = true
                    gradleParams = """-PconfirmationCode=startCycle -PtestRun=1 "-PgitUserName=test" "-PgitUserEmail=test@example.com" $pluginPortalUrlOverride"""
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Dec 05 00:08:14 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/InsecureForHostTest.kt

    import assertk.assertions.isNull
    import javax.net.ssl.SSLException
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.HeldCertificate
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

    import assertk.assertions.isEqualTo
    import assertk.assertions.isSameAs
    import java.util.concurrent.RejectedExecutionException
    import kotlin.test.assertFailsWith
    import okhttp3.TestLogHandler
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class TaskRunnerTest {
      private val taskFaker = TaskFaker()
    
      @RegisterExtension @JvmField
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            tags = PrunedTag.parse("a#test");
            assertEquals(1, tags.length);
            assertEquals("PrunedTag [tag=a, id=test, css=null, attrName=null, attrValue=null]", tags[0].toString());
    
            tags = PrunedTag.parse("a.test");
            assertEquals(1, tags.length);
            assertEquals("PrunedTag [tag=a, id=null, css=test, attrName=null, attrValue=null]", tags[0].toString());
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/FileSizeFormatTest.java

     */
    package org.apache.maven.cli.transfer;
    
    import org.apache.maven.cli.transfer.FileSizeFormat.ScaleUnit;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    class FileSizeFormatTest {
    
        @Test
        void testNegativeSize() {
            FileSizeFormat format = new FileSizeFormat();
    
            long negativeSize = -100L;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top