Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for assertThat (0.17 sec)

  1. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          assertThat(urls.get(0).getProtocol()).isEqualTo("file");
          assertThat(urls.get(0).getAuthority()).isNull();
          assertThat(urls.get(0).getPath()).endsWith("/relative/path/to/some.jar");
    
          assertThat(urls.get(1)).isEqualTo(new URL("file:///absolute/path/to/some.jar"));
    
          assertThat(urls.get(2).getProtocol()).isEqualTo("file");
          assertThat(urls.get(2).getAuthority()).isNull();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  2. maven-api-impl/src/test/java/org/apache/maven/internal/impl/resolver/DefaultModelResolverTest.java

    import org.apache.maven.internal.impl.standalone.ApiRunner;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import static org.hamcrest.MatcherAssert.assertThat;
    import static org.hamcrest.Matchers.containsString;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

          // not being true.
          Pattern pattern = Pattern.compile("Multiple entries with same key: four=(.*) and four=(.*)");
          assertThat(expected).hasMessageThat().matches(pattern);
          Matcher matcher = pattern.matcher(expected.getMessage());
          assertThat(matcher.matches()).isTrue();
          assertThat(matcher.group(1)).isNotEqualTo(matcher.group(2));
        }
      }
    
      public void testOf() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<Integer> i = singletonIterator(1);
        assertThat(i.hasNext()).isTrue();
        assertThat(i.next()).isEqualTo(1);
        assertThat(i.hasNext()).isFalse();
      }
    
      public void testSingletonNullIteratorBasic() {
        Iterator<@Nullable Integer> i = singletonIterator(null);
        assertThat(i.hasNext()).isTrue();
        assertThat(i.next()).isEqualTo(null);
        assertThat(i.hasNext()).isFalse();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java

    import org.apache.maven.project.MavenProject;
    import org.junit.jupiter.api.Test;
    
    import static org.codehaus.plexus.testing.PlexusExtension.getBasedir;
    import static org.hamcrest.MatcherAssert.assertThat;
    import static org.hamcrest.Matchers.endsWith;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    @Deprecated
    class ProjectDependenciesResolverTest extends AbstractCoreMavenComponentTestCase {
        @Inject
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Maps.java

       * ...
       * ImmutableSet<Color> allColors = ImmutableSet.of(red, green, blue);
       *
       * ImmutableMap<String, Color> colorForName =
       *     uniqueIndex(allColors, c -> c.toString());
       * assertThat(colorForName).containsEntry("red", red);
       * }</pre>
       *
       * <p>If your index may associate multiple values with each key, use {@link
       * Multimaps#index(Iterable, Function) Multimaps.index}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
Back to top