Skip to content

Commit 5ca78c0

Browse files
committed
All is done
1 parent 80528ad commit 5ca78c0

44 files changed

Lines changed: 2341 additions & 431 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test-task/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<classpathentry excluding="**" kind="src" output="target/test-task-1.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources"/>
66
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
77
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
8+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
89
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
910
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
1011
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
1112
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
12-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
1313
<classpathentry kind="output" path="target/test-task-1.0-SNAPSHOT/WEB-INF/classes"/>
1414
</classpath>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#Mon Dec 05 11:26:07 EET 2011
1+
#Sat Dec 10 14:15:38 EET 2011
22
eclipse.preferences.version=1
33
filesCopiedToWebInfLib=

test-task/README.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
In this folder you see test-task Maven project.
2+
Some hints how to use it:
3+
4+
============================
5+
Build
6+
============================
7+
mvn clean install
8+
9+
10+
============================
11+
Run in servlet container
12+
============================
13+
1. mvn clean install
14+
2. deploy target/test-task-1.0-SNAPSHOT.war
15+
3. open with you browser http://YOU_CONTAINER_HOST:YOUR_CONTAINER_PORT/test-task-1.0-SNAPSHOT/testtask.html
16+
17+
18+
============================
19+
Prepare test coverage report
20+
============================
21+
1. mvn cobertura:cobertura
22+
2. open with you browser target/site/cobertura/index.html
23+
24+
If any questions feel free to ask.
25+
Ilya

test-task/pom.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1919
</properties>
20-
20+
2121
<dependencies>
2222
<dependency>
2323
<groupId>com.google.gwt</groupId>
@@ -51,10 +51,9 @@
5151
<scope>test</scope>
5252
</dependency>
5353
<dependency>
54-
<groupId>org.easymock</groupId>
55-
<artifactId>easymock</artifactId>
56-
<version>3.1</version>
57-
<scope>test</scope>
54+
<groupId>org.mockito</groupId>
55+
<artifactId>mockito-all</artifactId>
56+
<version>1.8.5</version>
5857
</dependency>
5958
</dependencies>
6059

@@ -105,6 +104,11 @@
105104
</lifecycleMappingMetadata>
106105
</configuration>
107106
</plugin>
107+
<plugin>
108+
<groupId>org.codehaus.mojo</groupId>
109+
<artifactId>cobertura-maven-plugin</artifactId>
110+
<version>2.5.1</version>
111+
</plugin>
108112
</plugins>
109113
</pluginManagement>
110114

@@ -119,7 +123,6 @@
119123
<execution>
120124
<goals>
121125
<goal>compile</goal>
122-
<goal>test</goal>
123126
<goal>generateAsync</goal>
124127
</goals>
125128
</execution>

test-task/src/main/java/com/example/test/task/client/ResourceBundle.java

Lines changed: 190 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,107 +6,257 @@
66
import com.google.gwt.resources.client.DataResource;
77
import com.google.gwt.resources.client.ImageResource;
88

9+
/**
10+
* The resource bundle for images, css reosources.
11+
*
12+
* @author Ilya Sviridov
13+
*
14+
*/
15+
916
public interface ResourceBundle extends ClientBundle {
10-
public static final ResourceBundle INSTANCE = GWT.create(ResourceBundle.class);
11-
17+
public static final ResourceBundle INSTANCE = GWT.create(ResourceBundle.class);
18+
19+
/**
20+
* The application css
21+
*
22+
*/
1223
@Source("ApplicationStyle.css")
13-
@CssResource.NotStrict
14-
public Style css();
15-
24+
@CssResource.NotStrict
25+
public Style css();
26+
27+
/**
28+
* The create new substitution control icon
29+
*
30+
*/
1631
@Source("create.gif")
1732
public ImageResource createIcon();
18-
33+
34+
/**
35+
* The create new substitution control icon as DataResource
36+
*
37+
*/
1938
@Source("create.gif")
2039
public DataResource createIconResource();
21-
40+
41+
/**
42+
*
43+
* Update control icon
44+
*/
2245
@Source("update_active_icon.gif")
2346
public DataResource updateIconResource();
24-
47+
48+
/**
49+
* Update controll icon in disabled state
50+
*
51+
*/
2552
@Source("update.gif")
2653
public DataResource updateIconDisabledResource();
27-
54+
55+
/**
56+
* Delete icon
57+
*
58+
*/
2859
@Source("delete_active_icon.gif")
2960
public DataResource deleteIconResource();
30-
61+
62+
/**
63+
* Delete icon disabled
64+
*
65+
*/
3166
@Source("delete.gif")
3267
public DataResource deleteIconDisabledResource();
33-
34-
68+
69+
/**
70+
* The window icon on substitution management window
71+
*
72+
*/
3573
@Source("wind_icon.gif")
3674
public ImageResource substitutionWindowIcon();
37-
75+
76+
/**
77+
* The window icon on edit substitution window
78+
*
79+
*/
3880
@Source("wind_icon2.gif")
3981
public ImageResource substitutionEditWindowIcon();
40-
82+
83+
/**
84+
*
85+
* The X image
86+
*/
4187
@Source("close_btn.gif")
4288
public ImageResource closeButtonIcon();
43-
89+
90+
/**
91+
*
92+
* The X image as resource
93+
*
94+
*/
4495
@Source("close_btn.gif")
4596
public DataResource closeButtonIconResource();
46-
97+
98+
/**
99+
*
100+
* Window styling corner
101+
*
102+
*/
47103
@Source("top_left_corner.png")
48104
public DataResource topLeftCorner();
49-
105+
106+
/**
107+
*
108+
* Window styling corner
109+
*
110+
*/
50111
@Source("top_right_corner.png")
51112
public DataResource topRightCorner();
52-
113+
114+
/**
115+
*
116+
* Window styling corner
117+
*
118+
*/
53119
@Source("bottom_left_corner.png")
54120
public DataResource bottomLeftCorner();
55-
121+
122+
/**
123+
*
124+
* Window styling corner
125+
*
126+
*/
56127
@Source("bottom_right_corner.png")
57128
public DataResource bottomRightCorner();
58-
129+
130+
/**
131+
*
132+
* Window styling background
133+
*
134+
*/
59135
@Source("top_repeat_center.png")
60136
public DataResource topCenterBackground();
61-
137+
138+
/**
139+
*
140+
* Window styling background
141+
*
142+
*/
62143
@Source("left_middle_cen.png")
63144
public DataResource middleLeftBackground();
64-
145+
146+
/**
147+
*
148+
* Window styling background
149+
*
150+
*/
65151
@Source("bottom_repeat_center.png")
66152
public DataResource bottomCenterBackground();
67-
153+
154+
/**
155+
*
156+
* Window styling background
157+
*
158+
*/
68159
@Source("right_middle_cen.png")
69160
public DataResource middleRightBackground();
70-
161+
162+
/**
163+
*
164+
* The button styling
165+
*
166+
*/
71167
@Source("btn_bg_l.png")
72168
public DataResource buttonLeftBackgroungResource();
73-
169+
170+
/**
171+
*
172+
* The button styling
173+
*
174+
*/
74175
@Source("btn_bg_r.png")
75176
public DataResource buttonRightBackgroungResource();
76-
177+
178+
/**
179+
*
180+
* The button styling
181+
*
182+
*/
77183
@Source("btn_bg_c.png")
78184
public DataResource buttonCenterBackgroungResource();
79-
185+
186+
/**
187+
*
188+
* Cancel button icon resource
189+
*/
80190
@Source("cancel_icon.png")
81191
public DataResource cancelIconResource();
82-
83-
192+
193+
/**
194+
* The tabs styling resource
195+
*
196+
*/
84197
@Source("tab_active_bg_l.jpg")
85198
public DataResource tabActiveBackgroundLeftResource();
86-
199+
200+
/**
201+
* The tabs styling resource
202+
*
203+
*/
87204
@Source("tab_active_bg_r.jpg")
88205
public DataResource tabActiveBackgroundRightResource();
89-
206+
207+
/**
208+
* The tabs styling resource
209+
*
210+
*/
90211
@Source("tab_state_bg_l.jpg")
91212
public DataResource tabBackgroundLeftResource();
92-
213+
214+
/**
215+
* The tabs styling resource
216+
*
217+
*/
93218
@Source("tab_state_bg_r.jpg")
94219
public DataResource tabBackgroundRightResource();
95-
220+
221+
/**
222+
* The tabs styling resource
223+
*
224+
*/
96225
@Source("tab_nav_bg.gif")
97226
public DataResource tabNavigationBackgroundRightResource();
98-
227+
228+
/**
229+
* The background image for control panel
230+
*
231+
*/
99232
@Source("control_panel_bg.gif")
100233
public DataResource controlPanelBackgroundResource();
101-
102-
234+
235+
/**
236+
*
237+
* The date piker icon
238+
*
239+
*/
103240
@Source("date_picker.gif")
104241
public DataResource datePickerIconResource();
105-
242+
243+
/**
244+
* Save button icom
245+
*
246+
*/
106247
@Source("save_icon.png")
107248
public DataResource saveButtonIconResource();
108-
249+
250+
/**
251+
* The CSSResource style class
252+
*
253+
* @author Ilya Sviridov
254+
*
255+
*/
109256
public interface Style extends CssResource {
110-
String tabStyle();
111-
}
257+
/**
258+
* Returns tabTyle
259+
*/
260+
String tabStyle();
261+
}
112262
}

0 commit comments

Comments
 (0)