diff options
Diffstat (limited to 'zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorCounterTest.java')
-rw-r--r-- | zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorCounterTest.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorCounterTest.java b/zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorCounterTest.java index 6b85953a1ff..3d465c6b71f 100644 --- a/zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorCounterTest.java +++ b/zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorCounterTest.java @@ -1,9 +1,10 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.curator; import com.yahoo.vespa.curator.mock.MockCurator; import org.apache.curator.framework.recipes.atomic.DistributedAtomicLong; import org.junit.Test; + import static org.junit.Assert.assertEquals; /** @@ -14,9 +15,9 @@ public class CuratorCounterTest { @Test public void testCounter() throws Exception { DistributedAtomicLong counter = new MockCurator().createAtomicCounter("/mycounter"); - counter.initialize(4l); - assertEquals(4l, counter.get().postValue().longValue()); - assertEquals(5l, counter.increment().postValue().longValue()); + counter.initialize(4L); + assertEquals(4L, counter.get().postValue().longValue()); + assertEquals(5L, counter.increment().postValue().longValue()); } } |