mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 15:20:54 +03:00
Testing #toString of Parameters (#653)
This commit is contained in:
@@ -3,6 +3,7 @@ package net.schmizz.sshj.connection.channel.direct;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertNotEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import java.util.HashMap;
|
||||
@@ -93,4 +94,15 @@ public class ParametersTest {
|
||||
assertNull(map.get(third));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToString() {
|
||||
final Parameters first = new Parameters("127.0.0.1", 8080, "github.com", 443);
|
||||
assertNotNull(first.toString());
|
||||
assertFalse(first.toString().isBlank());
|
||||
assertTrue(first.toString().contains("127.0.0.1"));
|
||||
assertTrue(first.toString().contains("8080"));
|
||||
assertTrue(first.toString().contains("github.com"));
|
||||
assertTrue(first.toString().contains("443"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user