aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/util/ClockTest.java
blob: fbd34297953e7b825fd6a80c2e9a2abc86e4a3ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.util;

import junit.framework.TestCase;

public class ClockTest extends TestCase {

    public void testNothingButGetCoverage() {
        long s = new Clock().getTimeInSecs();
        long ms = new Clock().getTimeInMillis();
        assertTrue(ms >= 1000 * s);
    }
}