01: package migration.modules.ldap;
02:
03: public class AuthMapTest {
04:
05: public static void main(String args[]) {
06: AuthMap am1 = new AuthMap();
07: // Test for a real key
08: System.out.println("Test for a real key: "
09: + am1.containsKey("Application"));
10: // Test for a real key get
11: System.out.println("Test for a real key get: "
12: + am1.get("Application"));
13: // Test for a case insensitive key
14: System.out.println("Test for a case insensitive key: "
15: + am1.containsKeyIgnoreCase("radius"));
16: // Test for a case insensitive key get
17: System.out.println("Test for a case insensitive key get: "
18: + am1.getIgnoreCase("radius"));
19: // Test for a nonexistant key
20: System.out.println("Test for a nonexistant key: "
21: + am1.containsKey("Dilbert"));
22: // Test for a nonexistant key get
23: System.out.println("Test for a nonexistant key get: "
24: + am1.get("Dilbert"));
25: // Test for a case insensitive nonexistant key
26: System.out
27: .println("Test for a case insensitive nonexistant key: "
28: + am1.containsKeyIgnoreCase("dilbert"));
29: // Test for a case insensitive nonexistant key get
30: System.out
31: .println("Test for a case insensitive nonexistant key get: "
32: + am1.getIgnoreCase("dilbert"));
33:
34: }
35: }
|