Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 743 for assertThat (0.07 seconds)

  1. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

            // A wildcard rule, let's replace the wildcard with a value.
            publicSuffix = publicSuffix.replace("\\*".toRegex(), "square")
          }
          assertThat(publicSuffixDatabase.getEffectiveTldPlusOne(publicSuffix)).isNull()
          val test = "foobar.$publicSuffix"
          assertThat(publicSuffixDatabase.getEffectiveTldPlusOne(test)).isEqualTo(test)
        }
      }
    
      @Test
      fun publicSuffixExceptions() {
        val buffer = Buffer()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue May 27 22:00:49 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  2. guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java

          fail();
        } catch (Exception e) {
          assertThat(e).isInstanceOf(IllegalStateException.class);
          assertThat(e).hasMessageThat().isEqualTo("Cannot get() on a pending future.");
        }
      }
    
      static void verifyTimedGetOnPendingFuture(Future<?> future) {
        try {
          future.get(0, SECONDS);
          fail();
        } catch (Exception e) {
          assertThat(e).isInstanceOf(IllegalStateException.class);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java

    public class AtomicsTest extends TestCase {
    
      private static final Object OBJECT = new Object();
    
      public void testNewReference() throws Exception {
        assertThat(Atomics.newReference().get()).isNull();
      }
    
      public void testNewReference_withInitialValue() throws Exception {
        assertThat(Atomics.newReference(null).get()).isNull();
        assertEquals(OBJECT, Atomics.newReference(OBJECT).get());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

        val actualElapsedNs = result.timestampNs - (lastTimestampNs ?: result.timestampNs)
        lastTimestampNs = result.timestampNs
    
        if (eventClass != null) {
          assertThat(result).isInstanceOf(eventClass)
        }
    
        if (elapsedMs != -1L) {
          assertThat(
            TimeUnit.NANOSECONDS
              .toMillis(actualElapsedNs)
              .toDouble(),
          ).isCloseTo(elapsedMs.toDouble(), 100.0)
        }
    
        return result
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/core/collection/SingleValueIteratorTest.java

    import static org.junit.Assert.assertThat;
    
    import org.junit.Test;
    
    /**
     * @author koichik
     *
     */
    public class SingleValueIteratorTest {
    
        /**
         *
         */
        @Test
        public void test() {
            final SingleValueIterator<String> it = new SingleValueIterator<String>("Foo");
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("Foo"));
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt

        }.also { expected ->
          assertThat(expected.message).isEqualTo("Code must be in range [1000,5000): 98724976")
        }
      }
    
      @Test fun closeReservedThrows() {
        assertFailsWith<IllegalArgumentException> {
          clientWriter.writeClose(1005, "Hello".encodeUtf8())
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Code 1005 is reserved and may not be used.")
        }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 9.3K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        void assertLastMethodCalled(String method, long delay, TimeUnit unit) {
          assertThat(lastMethodCalled).isEqualTo(method);
          assertEquals(delay, lastDelay);
          assertEquals(unit, lastUnit);
        }
    
        void assertLastMethodCalled(String method, long initialDelay, long delay, TimeUnit unit) {
          assertThat(lastMethodCalled).isEqualTo(method);
          assertEquals(initialDelay, lastInitialDelay);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/core/io/ResourceBundleUtilTest.java

            System.out.println(value);
            assertThat(value, is(notNullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetBundle() throws Exception {
            final ResourceBundle bundle = ResourceBundleUtil.getBundle("CLMessages", null, this.getClass().getClassLoader());
            assertThat(bundle, is(notNullValue()));
        }
    
        /**
         * @throws Exception
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/FormBodyTest.kt

        assertThat(formEncode(59)).isEqualTo("%3B")
        assertThat(formEncode(60)).isEqualTo("%3C")
        assertThat(formEncode(61)).isEqualTo("%3D")
        assertThat(formEncode(62)).isEqualTo("%3E")
        assertThat(formEncode(63)).isEqualTo("%3F")
        assertThat(formEncode(64)).isEqualTo("%40")
        assertThat(formEncode(65)).isEqualTo("A")
        assertThat(formEncode(90)).isEqualTo("Z")
        assertThat(formEncode(91)).isEqualTo("%5B")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map).isEmpty();
    
        cache.getUnchecked(one);
        assertThat(map).hasSize(1);
        assertThat(map.get(one)).isSameInstanceAs(one);
        assertThat(map.containsKey(one)).isTrue();
        assertThat(map.containsValue(one)).isTrue();
        assertThat(map.remove(one)).isSameInstanceAs(one);
        assertThat(map).isEmpty();
    
        cache.getUnchecked(one);
        assertThat(map).hasSize(1);
        assertThat(map.remove(one, two)).isFalse();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
Back to Top