mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
add java driver tests
This commit is contained in:
14
drivers/java/test-resources/Hello.java
Normal file
14
drivers/java/test-resources/Hello.java
Normal file
@@ -0,0 +1,14 @@
|
||||
public class Hello {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello");
|
||||
int seconds = 5;
|
||||
if (args.length != 0) {
|
||||
seconds = Integer.parseInt(args[0]);
|
||||
}
|
||||
try {
|
||||
Thread.sleep(1000*seconds); //1000 milliseconds is one second.
|
||||
} catch(InterruptedException ex) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user