Moved main class into a test class
This commit is contained in:
parent
04864434a1
commit
b7c7913c92
3 changed files with 45 additions and 13 deletions
|
|
@ -0,0 +1,32 @@
|
|||
package se.hal.plugin.zwave;
|
||||
|
||||
import org.zwave4j.*;
|
||||
import se.hal.HalContext;
|
||||
import se.hal.intf.*;
|
||||
import se.hal.struct.AbstractDevice;
|
||||
import zutil.log.CompactLogFormatter;
|
||||
import zutil.log.LogUtil;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
* @author zagumennikov
|
||||
*/
|
||||
public class HalZWaveControllerTest {
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
LogUtil.setGlobalFormatter(new CompactLogFormatter());
|
||||
HalZWaveController controller = new HalZWaveController();
|
||||
controller.initialize(
|
||||
"/dev/serial/by-id/usb-0658_0200-if00",
|
||||
"./");
|
||||
|
||||
System.out.println("Press ENTER to exit application.");
|
||||
System.in.read();
|
||||
|
||||
controller.close();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue