#58 skeleton implemented

This commit is contained in:
Art
2017-03-17 19:48:13 +03:00
parent 5c1561bf94
commit ebbceb99d5
10 changed files with 160 additions and 66 deletions

View File

@ -0,0 +1,20 @@
package se.vidstige.jadb;
import org.junit.Test;
import static org.junit.Assert.*;
public class HostConnectToRemoteTcpDeviceTest {
@Test
public void testNormalConnection() {
//mock()
//HostConnectToRemoteTcpDevice hostConnectToRemoteTcpDevice = new HostConnectToRemoteTcpDevice();
}
@Test
public void parserTest() {
}
}

View File

@ -7,6 +7,7 @@ import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import se.vidstige.jadb.*;
import se.vidstige.jadb.entities.TcpAddressEntity;
import java.io.ByteArrayOutputStream;
import java.io.File;
@ -117,4 +118,10 @@ public class RealDeviceTestCases {
if (outputStream != null) outputStream.close();
}
}
@Test
public void testConnectionToTcpDevice() throws IOException, JadbException, ConnectionToRemoteDeviceException {
TcpAddressEntity tcpAddressEntity = jadb.connectToTcpDevice(new TcpAddressEntity("127.0.0.1", 10001));
}
}