equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
290 return; |
290 return; |
291 } |
291 } |
292 expected = LocalDateTime.now(Clock.system(zone)); |
292 expected = LocalDateTime.now(Clock.system(zone)); |
293 test = LocalDateTime.now(zone); |
293 test = LocalDateTime.now(zone); |
294 } |
294 } |
295 assertEquals(test, expected); |
295 assertEquals(test.truncatedTo(ChronoUnit.SECONDS), |
|
296 expected.truncatedTo(ChronoUnit.SECONDS)); |
296 } |
297 } |
297 |
298 |
298 //----------------------------------------------------------------------- |
299 //----------------------------------------------------------------------- |
299 // now(Clock) |
300 // now(Clock) |
300 //----------------------------------------------------------------------- |
301 //----------------------------------------------------------------------- |