Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for testCycle (0.04 seconds)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java

    import java.util.List;
    
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    @Deprecated
    public class GraphTest {
    
        @Test
        void testCycle() throws Graph.CycleDetectedException {
            Graph graph = new Graph();
            graph.addEdge("a1", "a2");
            assertThrows(Graph.CycleDetectedException.class, () -> graph.addEdge("a2", "a1"));
        }
    
        @Test
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertEquals("[]", FluentIterable.<String>of().toString());
    
        assertEquals(
            "[yam, bam, jam, ham]", FluentIterable.from(asList("yam", "bam", "jam", "ham")).toString());
      }
    
      public void testCycle() {
        FluentIterable<String> cycle = FluentIterable.from(asList("a", "b")).cycle();
    
        int howManyChecked = 0;
        for (String string : cycle) {
          String expected = (howManyChecked % 2 == 0) ? "a" : "b";
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 30.5K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        List<String> expected = asList("1", "2", "null", "3");
        assertEquals(expected, actual);
      }
    
      // Far less exhaustive than the tests in IteratorsTest
      public void testCycle() {
        Iterable<String> cycle = Iterables.cycle("a", "b");
    
        int howManyChecked = 0;
        for (String string : cycle) {
          String expected = (howManyChecked % 2 == 0) ? "a" : "b";
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 45.6K bytes
    - Click Count (0)
Back to Top