This commit is contained in:
CaiHQ
2023-03-06 14:32:46 +08:00
parent 905b06be39
commit 6b21c7ff7c
12 changed files with 535 additions and 134 deletions

View File

@@ -0,0 +1,22 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.bdware.irp.client.IrpClientImpl;
import org.bdware.irp.exception.IrpClientException;
import org.bdware.irp.stateinfo.StateInfoBase;
import org.junit.Test;
public class IrpTest {
static Logger LOGGER = LogManager.getLogger(IrpTest.class);
@Test
public void resolve() {
IrpClientImpl client = new IrpClientImpl();
client.connect("tcp://112.74.48.247:21044");
try {
StateInfoBase result = client.resolve("bdtest.gd/dddd");
LOGGER.info(result.handleValues.toString());
} catch (IrpClientException e) {
throw new RuntimeException(e);
}
}
}