Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Add a test of user identity verification.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eroschang committed Jul 1, 2020
1 parent 0fca95a commit cbb9d28
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void testList() throws Exception {
}

@Test
public void testauth() throws Exception {
public void testauth() throws Exception {
DirContext ctx = null;
Hashtable<String, String> HashEnv = new Hashtable<String, String>();

Expand All @@ -153,19 +153,19 @@ public void testauth() throws Exception {

try {
ctx = new InitialDirContext(HashEnv);
System.out.println("Pass");
LOG.info("Pass");
}
catch (AuthenticationException e) {
System.out.println("fail");
e.printStackTrace();
LOG.info("fail");
LOG.error(e.getMessage(), e);
}
catch (javax.naming.CommunicationException e) {
System.out.println("Connection fail");
e.printStackTrace();
LOG.info("Connection fail");
LOG.error(e.getMessage(), e);
}
catch (Exception e) {
System.out.println("Unknown identity verification fail");
e.printStackTrace();
LOG.info("Unknown identity verification fail");
LOG.error(e.getMessage(), e);
}
}

Expand Down

0 comments on commit cbb9d28

Please sign in to comment.