From 9384826c7ea3d1fc5a04b1629257c520b6365947 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 25 Apr 2020 16:10:28 -0400 Subject: [PATCH] [T] Test loginInfo --- src/test/java/org/hydev/veracross/sdk/VeraTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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");