@@ -77,7 +77,7 @@ public void expose_some_private_constants_from_TimeUtil() {
7777
7878 @ Test
7979 public void calculate_timestamp_of_moment_minute_ago_from_now () {
80- final Timestamp currentTime = getCurrentTime ();
80+ final Timestamp currentTime = Timestamps . getCurrentTime ();
8181 final Timestamp expected = subtract (currentTime , MINUTE );
8282
8383 final Timestamp actual = Timestamps .minutesAgo (1 );
@@ -87,7 +87,7 @@ public void calculate_timestamp_of_moment_minute_ago_from_now() {
8787
8888 @ Test
8989 public void compare_two_timestamps_return_negative_int_if_first_less_than_second_one () {
90- final Timestamp time1 = getCurrentTime ();
90+ final Timestamp time1 = Timestamps . getCurrentTime ();
9191 final Timestamp time2 = add (time1 , TEN_SECONDS );
9292
9393 final int result = Timestamps .compare (time1 , time2 );
@@ -97,7 +97,7 @@ public void compare_two_timestamps_return_negative_int_if_first_less_than_second
9797
9898 @ Test
9999 public void compare_two_timestamps_return_negative_int_if_first_is_null () {
100- final Timestamp currentTime = getCurrentTime ();
100+ final Timestamp currentTime = Timestamps . getCurrentTime ();
101101
102102 final int result = Timestamps .compare (null , currentTime );
103103
@@ -131,7 +131,7 @@ public void compare_two_timestamps_return_zero_if_pass_null() {
131131
132132 @ Test
133133 public void compare_two_timestamps_return_positive_int_if_first_greater_than_second_one () {
134- final Timestamp currentTime = getCurrentTime ();
134+ final Timestamp currentTime = Timestamps . getCurrentTime ();
135135 final Timestamp timeAfterCurrent = add (currentTime , TEN_SECONDS );
136136
137137 final int result = Timestamps .compare (timeAfterCurrent , currentTime );
@@ -141,7 +141,7 @@ public void compare_two_timestamps_return_positive_int_if_first_greater_than_sec
141141
142142 @ Test
143143 public void compare_two_timestamps_return_positive_int_if_second_one_is_null () {
144- final Timestamp currentTime = getCurrentTime ();
144+ final Timestamp currentTime = Timestamps . getCurrentTime ();
145145
146146 final int result = Timestamps .compare (currentTime , null );
147147
@@ -150,7 +150,7 @@ public void compare_two_timestamps_return_positive_int_if_second_one_is_null() {
150150
151151 @ Test
152152 public void return_true_if_timestamp_is_between_two_timestamps () {
153- final Timestamp start = getCurrentTime ();
153+ final Timestamp start = Timestamps . getCurrentTime ();
154154 final Timestamp timeBetween = add (start , TEN_SECONDS );
155155 final Timestamp finish = add (timeBetween , TEN_SECONDS );
156156
@@ -161,7 +161,7 @@ public void return_true_if_timestamp_is_between_two_timestamps() {
161161
162162 @ Test
163163 public void return_false_if_timestamp_is_not_between_two_timestamps () {
164- final Timestamp start = getCurrentTime ();
164+ final Timestamp start = Timestamps . getCurrentTime ();
165165 final Timestamp finish = add (start , TEN_SECONDS );
166166 final Timestamp timeNotBetween = add (finish , TEN_SECONDS );
167167
@@ -172,7 +172,7 @@ public void return_false_if_timestamp_is_not_between_two_timestamps() {
172172
173173 @ Test
174174 public void return_true_if_timestamp_is_after_another_one () {
175- final Timestamp fromPoint = getCurrentTime ();
175+ final Timestamp fromPoint = Timestamps . getCurrentTime ();
176176 final Timestamp timeToCheck = add (fromPoint , TEN_SECONDS );
177177
178178 final boolean isAfter = Timestamps .isLaterThan (timeToCheck , fromPoint );
@@ -182,7 +182,7 @@ public void return_true_if_timestamp_is_after_another_one() {
182182
183183 @ Test
184184 public void return_false_if_timestamp_is_not_after_another_one () {
185- final Timestamp fromPoint = getCurrentTime ();
185+ final Timestamp fromPoint = Timestamps . getCurrentTime ();
186186 final Timestamp timeToCheck = subtract (fromPoint , TEN_SECONDS );
187187
188188 final boolean isAfter = Timestamps .isLaterThan (timeToCheck , fromPoint );
@@ -192,7 +192,7 @@ public void return_false_if_timestamp_is_not_after_another_one() {
192192
193193 @ Test
194194 public void compare_two_timestamps_using_comparator_return_negative_int_if_first_less_than_second_one () {
195- final Timestamp time1 = getCurrentTime ();
195+ final Timestamp time1 = Timestamps . getCurrentTime ();
196196 final Timestamp time2 = add (time1 , TEN_SECONDS );
197197
198198 final int result = Timestamps .comparator ()
@@ -222,7 +222,7 @@ public void compare_two_timestamps_using_comparator_return_zero_if_timestamps_ar
222222
223223 @ Test
224224 public void compare_two_timestamps_using_comparator_return_positive_int_if_first_greater_than_second_one () {
225- final Timestamp currentTime = getCurrentTime ();
225+ final Timestamp currentTime = Timestamps . getCurrentTime ();
226226 final Timestamp timeAfterCurrent = add (currentTime , TEN_SECONDS );
227227
228228 final int result = Timestamps .comparator ()
@@ -234,7 +234,7 @@ public void compare_two_timestamps_using_comparator_return_positive_int_if_first
234234 @ Test
235235 public void convert_timestamp_to_date_to_nearest_second () {
236236
237- final Timestamp expectedTime = getCurrentTime ();
237+ final Timestamp expectedTime = Timestamps . getCurrentTime ();
238238
239239 final Date actualDate = convertToDate (expectedTime );
240240 final long actualSeconds = actualDate .getTime () / MILLIS_PER_SECOND ;
@@ -244,7 +244,7 @@ public void convert_timestamp_to_date_to_nearest_second() {
244244
245245 @ Test
246246 public void convert_timestamp_to_nanos () {
247- final Timestamp expectedTime = getCurrentTime ();
247+ final Timestamp expectedTime = Timestamps . getCurrentTime ();
248248
249249 final long nanos = convertToNanos (expectedTime );
250250 final long expectedNanos = expectedTime .getSeconds () * NANOS_IN_SECOND + expectedTime .getNanos ();
0 commit comments