Skip to content

Commit

Permalink
[T] Test loginInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Apr 25, 2020
1 parent 68bb9b9 commit 9384826
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/java/org/hydev/veracross/sdk/VeraTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9384826

Please sign in to comment.