My favorites | Sign in
Project Home Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
*
*/
package org.openiaml.model.tests.codegen.model0_4_4;

import org.eclipse.core.resources.IFile;
import org.openiaml.model.tests.CodegenTestCase;

/**
* @implementation Label
* If a {@model Label} is contained within a {@model Session}, then the
* visibility of this {@model Label} persists according to the {@model Session}.
* @see LabelHideShow
*/
public class LabelHideShowSession extends CodegenTestCase {

@Override
protected void setUp() throws Exception {
super.setUp();
root = loadAndCodegen(LabelHideShowSession.class);
}

/**
* The home page can be accessed.
*
* @throws Exception
*/
public void testHome() throws Exception {

beginAtSitemapThenPage("Home");
assertNoProblem();

}

/**
* @implementation Label
* If a {@model Label} is hidden, the visibility of the Label will
* persist, according to the overall {@model Scope}.
*
* @throws Exception
*/
public void testHiddenPersists() throws Exception {

IFile sitemap = beginAtSitemapThenPage("Home");
clickButtonWithText("hide");
assertLabelTextNotPresent("test value");

// reload the page
reloadPage(sitemap, "Home");

// still not present
assertLabelTextNotPresent("test value");

// reload the application
restartSession(sitemap, "Home");

// it is present now!
assertLabelTextPresent("test value");

}

}

Change log

r1700 by soundasleep on Mar 14, 2010   Diff
adding test cases for LabelHideShow
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 1438 bytes, 62 lines
Powered by Google Project Hosting