Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 231 for containsExactly (0.62 sec)

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

        assertThat(graph.nodes()).containsExactly(N1, N5, N4, N2, N3).inOrder();
        assertThat(graph.adjacentNodes(N1)).containsExactly(N4, N5);
        assertThat(graph.adjacentNodes(N2)).containsExactly(N3);
        assertThat(graph.adjacentNodes(N3)).containsExactly(N2);
        assertThat(graph.adjacentNodes(N4)).containsExactly(N1);
        assertThat(graph.adjacentNodes(N5)).containsExactly(N1);
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

                .<String, Integer>immutable()
                .putEdgeValue("A", "B", 10)
                .build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
        assertThat(graph.edgeValueOrDefault("A", "B", null)).isEqualTo(10);
      }
    
      @Test
      public void immutableValueGraphBuilder_putEdgeFromEndpointPair() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 6.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        ImmutableListMultimap<String, Integer> multimap = builder.build();
        assertThat(multimap.keySet()).containsExactly("d", "c", "b", "a").inOrder();
        assertThat(multimap.values()).containsExactly(2, 4, 3, 6, 5, 2).inOrder();
        assertThat(multimap.get("a")).containsExactly(5, 2).inOrder();
        assertThat(multimap.get("b")).containsExactly(3, 6).inOrder();
      }
    
      public void testBuilderOrderKeysByDuplicates() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.hasMessage
    import assertk.assertions.isEqualTo
    import assertk.assertions.isIn
    import java.io.IOException
    import java.net.InetSocketAddress
    import java.net.UnknownHostException
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      public void testOf_headSet() {
        SortedSet<String> set = of("e", "f", "b", "d", "c");
        assertTrue(set.headSet("e") instanceof ImmutableSortedSet);
        assertThat(set.headSet("e")).containsExactly("b", "c", "d").inOrder();
        assertThat(set.headSet("g")).containsExactly("b", "c", "d", "e", "f").inOrder();
        assertSame(this.<String>of(), set.headSet("a"));
        assertSame(this.<String>of(), set.headSet("b"));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 45.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/TopKSelectorTest.java

        top.offer(5);
        top.offer(2);
        assertThat(top.topK()).containsExactly(2, 3, 5).inOrder();
      }
    
      public void testOfferedKPlusOne() {
        for (List<Integer> list : Collections2.permutations(Ints.asList(1, 2, 3, 4, 5))) {
          TopKSelector<Integer> top = TopKSelector.least(4);
          top.offerAll(list);
          assertThat(top.topK()).containsExactly(1, 2, 3, 4).inOrder();
        }
      }
    
      public void testOfferedThreeK() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        assertTrue(graphAsMutableGraph.putEdge(N2, N3));
        assertThat(graph.nodes()).containsExactly(N1, N5, N4, N2, N3).inOrder();
        assertThat(graph.successors(N1)).containsExactly(N5);
        assertThat(graph.successors(N2)).containsExactly(N3);
        assertThat(graph.successors(N3)).isEmpty();
        assertThat(graph.successors(N4)).containsExactly(N1);
        assertThat(graph.successors(N5)).isEmpty();
      }
    
      @Test
    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)
  8. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(graph.nodes()).containsExactly("A");
        assertThat(graph.edges()).isEmpty();
      }
    
      @Test
      public void immutableGraphBuilder_putEdgeFromNodes() {
        ImmutableGraph<String> graph =
            GraphBuilder.directed().<String>immutable().putEdge("A", "B").build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 4.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ObjectArraysTest.java

        assertThat(result).asList().containsExactly("a", "b").inOrder();
      }
    
      @GwtIncompatible // ObjectArrays.concat(Object[], Object[], Class)
      public void testConcatNonemptyEmpty() {
        String[] result = ObjectArrays.concat(new String[] {"a", "b"}, new String[0], String.class);
        assertEquals(String[].class, result.getClass());
        assertThat(result).asList().containsExactly("a", "b").inOrder();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        assertThat(network.edgesConnecting(N1, N1)).containsExactly(E11);
        assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12);
        assertTrue(networkAsMutableNetwork.removeEdge(E11));
        assertThat(network.edgesConnecting(N1, N1)).isEmpty();
        assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12);
      }
    
      @Test
      public void concurrentIteration() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top