public class AlwaysIncreasingSystem2 extends System2
System2 which implementation of System2.now() always return a bigger value than the
previous returned value.
This class is intended to be used in Unit tests.
| Constructor and Description |
|---|
AlwaysIncreasingSystem2()
Values returned by
now() will start with a random value and increment by 100. |
AlwaysIncreasingSystem2(long increment) |
AlwaysIncreasingSystem2(long initialValue,
int increment) |
| Modifier and Type | Method and Description |
|---|---|
long |
now()
|
close, envVariable, envVariables, getDefaultTimeZone, getResource, isJavaAtLeast17, isOsWindows, newDate, println, properties, property, setPropertypublic AlwaysIncreasingSystem2(long increment)
public AlwaysIncreasingSystem2(long initialValue, int increment)
public AlwaysIncreasingSystem2()
now() will start with a random value and increment by 100.Copyright © 2009–2017 SonarSource. All rights reserved.