Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 208 for correctly (0.18 sec)

  1. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assertThat(network.outEdges(N1)).containsExactly(E12);
        // Edge direction handled correctly
        assertThat(network.outEdges(N2)).isEmpty();
      }
    
      @Test
      public void predecessors_oneEdge() {
        addEdge(N1, N2, E12);
        assertThat(network.predecessors(N2)).containsExactly(N1);
        // Edge direction handled correctly
        assertThat(network.predecessors(N1)).isEmpty();
      }
    
      @Test
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        // Edge direction handled correctly
        assertThat(graph.inDegree(N1)).isEqualTo(0);
      }
    
      @Test
      public void outDegree_oneEdge() {
        putEdge(N1, N2);
        assertThat(graph.outDegree(N1)).isEqualTo(1);
        // Edge direction handled correctly
        assertThat(graph.outDegree(N2)).isEqualTo(0);
      }
    
      @Test
      public void hasEdgeConnecting_correct() {
        putEdge(N1, N2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        } finally {
          executor.shutdownNow();
        }
    
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
      }
    
      /** Tests that the {@link Future#get(long, TimeUnit)} method times out correctly. */
      public void testTimeoutOnGetWorksCorrectly() throws InterruptedException, ExecutionException {
    
        // The task thread waits for the latch, so we expect a timeout here.
        try {
          future.get(20, MILLISECONDS);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 18:30:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assertThat(network.outEdges(N1)).containsExactly(E12);
        // Edge direction handled correctly
        assertThat(network.outEdges(N2)).isEmpty();
      }
    
      @Test
      public void predecessors_oneEdge() {
        addEdge(N1, N2, E12);
        assertThat(network.predecessors(N2)).containsExactly(N1);
        // Edge direction handled correctly
        assertThat(network.predecessors(N1)).isEmpty();
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        // Edge direction handled correctly
        assertThat(graph.inDegree(N1)).isEqualTo(0);
      }
    
      @Test
      public void outDegree_oneEdge() {
        putEdge(N1, N2);
        assertThat(graph.outDegree(N1)).isEqualTo(1);
        // Edge direction handled correctly
        assertThat(graph.outDegree(N2)).isEqualTo(0);
      }
    
      @Test
      public void hasEdgeConnecting_correct() {
        putEdge(N1, N2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        } finally {
          executor.shutdownNow();
        }
    
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
      }
    
      /** Tests that the {@link Future#get(long, TimeUnit)} method times out correctly. */
      public void testTimeoutOnGetWorksCorrectly() throws InterruptedException, ExecutionException {
    
        // The task thread waits for the latch, so we expect a timeout here.
        try {
          future.get(20, MILLISECONDS);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 18:30:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java

            assertEquals(1, result.getProject().getArtifacts().size());
            assertNotNull(result.getDependencyResolutionResult());
        }
    
        /**
         * Tests whether local version range parent references are build correctly.
         *
         * @throws Exception in case of issue
         */
        @Test
        void testBuildValidParentVersionRangeLocally() throws Exception {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Jun 19 15:04:04 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/Base.java

    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** Simple base class to verify that we handle generics correctly. */
    @GwtCompatible
    class Base implements Comparable<Base>, Serializable {
      private final String s;
    
      public Base(String s) {
        this.s = s;
      }
    
      @Override
      public int hashCode() { // delegate to 's'
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 22:29:45 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     *
     * <p>The value you pass to the parameter {@code steps} should be greater than the length of your
     * iterator, so that this class can check that your iterator behaves correctly when it is exhausted.
     *
     * <p>For example, to test {@link java.util.Collections#unmodifiableList(java.util.List)
     * Collections.unmodifiableList}'s iterator:
     *
     * <pre>{@code
     * List<String> expectedElements =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java

        // Verify that everything else is left unescaped.
        String safeChars = "\0\u0100\uD800\uDC00\uFFFF";
        assertEquals(safeChars, escaper.escape(safeChars));
    
        // Ensure that Unicode escapers behave correctly wrt badly formed input.
        String badUnicode = "\uDC00\uD800";
        try {
          escaper.escape(badUnicode);
          fail("should fail for bad Unicode");
        } catch (IllegalArgumentException e) {
          // Pass
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (0)
Back to top