Add uptime command
[xudocci.git] / src / test / java / net / pterodactylus / xdcc / ui / stdin / StatsCommandTest.java
index c1f0abc..efbdde3 100644 (file)
@@ -10,6 +10,7 @@ import static org.mockito.Mockito.when;
 
 import java.io.IOException;
 import java.io.StringWriter;
+import java.time.Duration;
 
 import net.pterodactylus.xdcc.core.Core;
 import net.pterodactylus.xdcc.data.ConnectedNetwork;
@@ -34,6 +35,7 @@ public class StatsCommandTest {
                                builder("TestNet").build(),
                                "irc.test.net",
                                6667,
+                               Duration.ofMinutes(1),
                                "Nickname1",
                                asList("#channel1", "#channel2"),
                                emptyList(),
@@ -44,6 +46,7 @@ public class StatsCommandTest {
                                builder("DummyNet").build(),
                                "irc.dummy.net",
                                6789,
+                               Duration.ofMinutes(1),
                                "Nickname2",
                                asList("#dummy1", "#dummy2"),
                                asList("#foo", "#bar"),
@@ -54,6 +57,7 @@ public class StatsCommandTest {
                                builder("FooNet").build(),
                                "irc.foo.net",
                                7000,
+                               Duration.ofMinutes(1),
                                "Nickname3",
                                emptyList(),
                                emptyList(),
@@ -64,6 +68,7 @@ public class StatsCommandTest {
                                builder("BarNet").build(),
                                "irc.bar.net",
                                7001,
+                               Duration.ofMinutes(1),
                                "Nickname4",
                                emptyList(),
                                asList("#foo", "#bar"),