01: package com.ecyrd.jspwiki.web;
02:
03: public class ContainerTest extends CommonContainerTests {
04: protected static final String USER = "pancho";
05:
06: public ContainerTest(String s) {
07: super (s, "test-container/");
08: }
09:
10: public void testCreateProfile() {
11: String loginname = "pvilla";
12: String fullname = "Pancho Villa";
13: String suffix = generateSuffix();
14:
15: // Start at the front page
16:
17: // Navigate to the profile page
18:
19: // We should NOT see a loginname field, OR a password field
20: // and a warning message advising the user to log in
21:
22: // Try creating user profile with generated user name
23:
24: // We should NOT be able to create profile, because we're not logged in
25:
26: // OK, very nice. We've shown that you CANNOT create a profile unless there's a container ID already.
27: // Now, let's try doing it with an existing account (but, we will stop just short of creating the profile)
28:
29: // Log in first!
30:
31: // Great. Now, let's try creating a profile
32:
33: // We should NOT see a loginname field or a password field,
34: // and we should see a warning message that the ID can't be changed because it's a container ID
35: }
36:
37: /**
38: *This test is a no-op because container-managed login IDs can't be renamed.
39: */
40: public void testRenameProfile() {
41: }
42: }
|