You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/08/20 20:58:28 UTC

[GitHub] [commons-lang] arturobernalg commented on a diff in pull request #940: Rename method and fix typo.

arturobernalg commented on code in PR #940:
URL: https://github.com/apache/commons-lang/pull/940#discussion_r950740569


##########
src/test/java/org/apache/commons/lang3/time/DurationUtilsTest.java:
##########
@@ -38,16 +38,16 @@ public class DurationUtilsTest extends AbstractLangTest {
 
     @Test
     public void testGetNanosOfMilli() {
-        assertEquals(0, DurationUtils.getNanosOfMiili(null));
-        assertEquals(0, DurationUtils.getNanosOfMiili(Duration.ZERO));
-        assertEquals(1, DurationUtils.getNanosOfMiili(Duration.ofNanos(1)));
-        assertEquals(10, DurationUtils.getNanosOfMiili(Duration.ofNanos(10)));
-        assertEquals(100, DurationUtils.getNanosOfMiili(Duration.ofNanos(100)));
-        assertEquals(1_000, DurationUtils.getNanosOfMiili(Duration.ofNanos(1_000)));
-        assertEquals(10_000, DurationUtils.getNanosOfMiili(Duration.ofNanos(10_000)));
-        assertEquals(100_000, DurationUtils.getNanosOfMiili(Duration.ofNanos(100_000)));
-        assertEquals(0, DurationUtils.getNanosOfMiili(Duration.ofNanos(1_000_000)));
-        assertEquals(1, DurationUtils.getNanosOfMiili(Duration.ofNanos(1_000_001)));
+        assertEquals(0, DurationUtils.getNanosOfMilli(null));

Review Comment:
   OK, done. Changed.
   TY @garydgregory 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org