mirror of
https://github.com/revanced/jadb.git
synced 2025-06-12 13:17:39 +02:00
#58 skeleton implemented
This commit is contained in:
20
test/se/vidstige/jadb/HostConnectToRemoteTcpDeviceTest.java
Normal file
20
test/se/vidstige/jadb/HostConnectToRemoteTcpDeviceTest.java
Normal 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() {
|
||||
|
||||
}
|
||||
}
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user