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
63
64
65
66
67
68
69
70
71
72
73
74
/**
*
*/
package org.openiaml.model.tests.codegen.model0_5;

import org.openiaml.model.tests.CodegenTestCase;

/**
*
* @implementation VisibleThing
* If a {@model Value} named 'fieldValue' is not initially contained within a
* {@model VisibleThing}, the attribute {@model VisibleThing#fieldValue fieldValue} will be
* used instead.
*/
public class ExplicitFieldValue extends CodegenTestCase {

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

/**
* The home page can be accessed.
*
* @throws Exception
*/
public void testHome() throws Exception {
beginAtSitemapThenPage("Home");
assertNoProblem();
}

/**
* The text field 'target' exists, and is set to 'initial value'.
*
* @throws Exception
*/
public void testHomeInitial() throws Exception {

beginAtSitemapThenPage("Home");
{
String target = getLabelIDForText("source target");
assertLabeledFieldEquals(target, "initial value");
}

}

/**
* 'change target' is told to set 'target'.
*
* @throws Exception
*/
public void testHomeChange() throws Exception {

beginAtSitemapThenPage("Home");
{
String target = getLabelIDForText("source target");
assertLabeledFieldEquals(target, "initial value");
}
{
String target = getLabelIDForText("change target");
assertLabeledFieldEquals(target, ""); // empty
setLabeledFormElementField(target, "new value");
}

// it should change 'target'
{
String target = getLabelIDForText("source target");
assertLabeledFieldEquals(target, "new value"); // empty
}

}

}

Change log

r3072 by soundasleep on Aug 8, 2011   Diff
fixing references to old metamodel
elements across project documentation
Go to: 
Project members, sign in to write a code review

Older revisions

r2816 by soundasleep on May 5, 2011   Diff
resolving failing test cases from
 issue 242  changes
assertMap() and assertMapPoint() need
to check visibility of map and map
point
r2660 by soundasleep on Apr 10, 2011   Diff
improving some failing codegen tests
by reducing their fragility
r2383 by soundasleep on Jun 28, 2010   Diff
updating failing test cases
All revisions of this file

File info

Size: 1699 bytes, 74 lines
Powered by Google Project Hosting