Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 517 for assertThat (0.06 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        executionThread.join();
        assertThat(expected).hasCauseThat().isEqualTo(service.failureCause());
        assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!");
        assertTrue(service.shutDownCalled);
        assertEquals(Service.State.FAILED, service.state());
        assertThat(expected.getCause().getSuppressed()[0]).hasMessageThat().isEqualTo("double kaboom!");
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/CharsetsTest.java

        byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII);
        byte[] b5 = "スューー".getBytes(Charsets.US_ASCII);
        // Assert they are all equal (using the transitive property)
        assertThat(b1).isEqualTo(b2);
        assertThat(b2).isEqualTo(b3);
        assertThat(b3).isEqualTo(b4);
        assertThat(b4).isEqualTo(b5);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java

      public void testFindClassesToTest_testClass() {
        assertThat(findClassesToTest(ImmutableList.of(EmptyTest.class))).isEmpty();
        assertThat(findClassesToTest(ImmutableList.of(EmptyTests.class))).isEmpty();
        assertThat(findClassesToTest(ImmutableList.of(EmptyTestCase.class))).isEmpty();
        assertThat(findClassesToTest(ImmutableList.of(EmptyTestSuite.class))).isEmpty();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 02:48:50 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. android-test-app/src/androidTest/kotlin/okhttp/android/testapp/PublicSuffixDatabaseTest.kt

     */
    package okhttp3.android
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import org.junit.Test
    
    /**
     * Run with "./gradlew :android-test-app:connectedCheck -PandroidBuild=true" and make sure ANDROID_SDK_ROOT is set.
     */
    class PublicSuffixDatabaseTest {
      @Test
      fun testTopLevelDomain() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/HeadersKotlinTest.kt

        }
    
        assertThat(pairs).containsExactly("a" to "b", "c" to "d")
      }
    
      @Test fun builderGetOperator() {
        val builder = Headers.Builder()
        builder.add("a", "b")
        builder.add("c", "d")
        assertThat(builder["a"]).isEqualTo("b")
        assertThat(builder["c"]).isEqualTo("d")
        assertThat(builder["e"]).isNull()
      }
    
      @Test fun builderSetOperator() {
        val builder = Headers.Builder()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/ObjectUtilTest.java

            assertThat(ObjectUtil.equals("", null), is(false));
            assertThat(ObjectUtil.equals("", ""), is(true));
            assertThat(ObjectUtil.equals(Boolean.TRUE, null), is(false));
            assertThat(ObjectUtil.equals(Boolean.TRUE, "true"), is(false));
            assertThat(ObjectUtil.equals(Boolean.TRUE, Boolean.TRUE), is(true));
            assertThat(ObjectUtil.equals(Boolean.TRUE, Boolean.FALSE), is(false));
        }
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/StatsTesting.java

        checkArgument(yDelta != 0.0);
        assertThat(transformation.isHorizontal()).isFalse();
        assertThat(transformation.isVertical()).isFalse();
        assertThat(transformation.inverse().isHorizontal()).isFalse();
        assertThat(transformation.inverse().isVertical()).isFalse();
        assertThat(transformation.transform(x1)).isWithin(ALLOWED_ERROR).of(y1);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/FilesTest.java

      public void testToByteArray() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        File i18nFile = getTestFile("i18n.txt");
        assertThat(Files.toByteArray(asciiFile)).isEqualTo(ASCII.getBytes(US_ASCII));
        assertThat(Files.toByteArray(i18nFile)).isEqualTo(I18N.getBytes(UTF_8));
        assertThat(Files.asByteSource(i18nFile).read()).isEqualTo(I18N.getBytes(UTF_8));
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java

        public void testContainsKey() throws Exception {
            assertThat(map.containsKey("ONE"), is(true));
            assertThat(map.containsKey("one"), is(true));
            assertThat(map.containsKey("onex"), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            assertThat(map.get("ONE"), is("1"));
            assertThat(map.get("One"), is("1"));
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

        client.webSocket!!.close(1000, "Hello!")
        assertThat(client.webSocket!!.close(1000, "Hello!")).isFalse()
        assertThat(client.webSocket!!.send("Hello!")).isFalse()
      }
    
      @Test
      fun clientCloseWith0Fails() {
        assertFailsWith<IllegalArgumentException> {
          client.webSocket!!.close(0, null)
        }.also { expected ->
          assertThat("Code must be in range [1000,5000): 0")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
Back to top