View Javadoc

1   package com.atlassian.pageobjects.elements.mock.clock;
2   
3   import com.atlassian.pageobjects.elements.query.util.Clock;
4   
5   /**
6    * {@link Clock} implementations for testing timed queries and conditions.
7    *
8    */
9   public final class QueryClocks
10  {
11      private QueryClocks()
12      {
13          throw new AssertionError("Don't instantiate me");
14      }
15  
16      public static Clock forInterval(long interval)
17      {
18          return new CompositeClock(new ConstantClock(0L)).addClock(2, new PeriodicClock(0L, interval, 2));
19      }
20  }