equal
deleted
inserted
replaced
|
1 package isac.users; |
|
2 |
|
3 import isac.browserdialog.IBrowserDialog; |
|
4 import isac.util.ObjectManagerPaths; |
|
5 |
|
6 import java.rmi.RemoteException; |
|
7 |
|
8 import junit.framework.TestCase; |
|
9 |
|
10 /** |
|
11 * If this test should work properly, KEStore and ObjectManager have to be started. |
|
12 */ |
|
13 public class TestUserManager extends TestCase { |
|
14 |
|
15 |
|
16 private IUserManager userManager; |
|
17 |
|
18 @Override |
|
19 protected void setUp() throws Exception { |
|
20 super.setUp(); |
|
21 ObjectManagerPaths.SESSION_MANAGER_USER_PATH = "/home/guenz/uni/workspace/BakkArbeit/isac/xmldata/users/"; |
|
22 ObjectManagerPaths.KESTORE_PATH = "http://localhost:1030"; |
|
23 userManager = UserManager.getInstance(); |
|
24 } |
|
25 |
|
26 @Override |
|
27 protected void tearDown() throws Exception { |
|
28 userManager = null; |
|
29 super.tearDown(); |
|
30 } |
|
31 |
|
32 public void testLogin() { |
|
33 try { |
|
34 IBrowserDialog browserDialog = userManager.login("x", "x"); |
|
35 assertTrue(true); |
|
36 } |
|
37 catch (RemoteException e) { |
|
38 e.printStackTrace(); |
|
39 assertTrue(false); |
|
40 } |
|
41 |
|
42 |
|
43 } |
|
44 |
|
45 } |