diff --git a/src/test/java/org/hydev/veracross/sdk/VeraTest.java b/src/test/java/org/hydev/veracross/sdk/VeraTest.java index f52e6b5..69f524c 100644 --- a/src/test/java/org/hydev/veracross/sdk/VeraTest.java +++ b/src/test/java/org/hydev/veracross/sdk/VeraTest.java @@ -38,6 +38,14 @@ void init() @Test @Order(2) void validateLogin() throws IOException { + VeraLoginInfo loginInfo = veracross.getLoginInfo(); + + if (loginInfo == null) + { + System.out.println("Error: Login Expired"); + System.exit(-1); + } + if (!veracross.validateLogin()) { System.out.println("Error: Login Expired");