Added support for newlines in TEXT command.

This commit is contained in:
Jason Watkins
2015-04-08 09:04:33 -07:00
parent f8372f6f4d
commit c3e284fc02
5 changed files with 48 additions and 36 deletions

View File

@@ -227,6 +227,26 @@ public class XPlaneConnectTest
}
}
@Test
public void testSendTEXT_Multiline() throws IOException
{
String msg = "XPlaneConnect Java message test.\nNow with new lines!\rAnd another...\r\nAnd now a double.";
try(XPlaneConnect xpc = new XPlaneConnect())
{
xpc.sendTEXT(msg, 200, 400);
}
}
@Test
public void testSendTEXT_Long() throws IOException
{
String msg = "XPlaneConnect Java message test.\nNow with new lines!\rAnd another...\r\nAnd now a double\nAnd finally a really long line because that seemed to break things.";
try(XPlaneConnect xpc = new XPlaneConnect())
{
xpc.sendTEXT(msg, 200, 400);
}
}
@Test
public void testSendDREF() throws IOException
{