Package sis.clock

Examples of sis.clock.ClockListener


 
  @Ignore
  public void testClock() throws Exception {
    final int seconds = 2;
        final List<Date> tics = new ArrayList<Date>();
        ClockListener listener = createClockListener(tics, seconds);
        clock = new Clock(listener);
        lock.lock();
        try {
           receivedEnoughTics.await();
        }
View Full Code Here


        verify(tics, seconds);
  }
 
  private ClockListener createClockListener(
           final List<Date> tics, final int seconds) {
        return new ClockListener() {
           private int count = 0;
           public void update(Date date) {
              tics.add(date);
              if (++count == seconds) {
                 lock.lock();
View Full Code Here

TOP

Related Classes of sis.clock.ClockListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.