GwtTestOnlineGlom test: Minor changes.
[online-glom:gwt-glom.git] / src / test / java / org / glom / web / client / GwtTestOnlineGlom.java
1 package org.glom.web.client;
2
3 import com.google.gwt.event.dom.client.KeyCodes;
4 import com.google.gwt.user.client.Event;
5
6 import com.octo.gwt.test.Mock;
7 import com.octo.gwt.test.GwtTestWithEasyMock;
8 import com.octo.gwt.test.utils.events.Browser;
9 import com.octo.gwt.test.utils.events.EventBuilder;
10
11 import static org.junit.Assert.*;
12 import org.junit.Before;
13 import org.junit.Test;
14 import org.junit.Assert;
15
16 import org.glom.web.client.mvp.AppPlaceHistoryMapper;
17 import org.easymock.EasyMock;
18
19 public class GwtTestOnlineGlom extends GwtTestWithEasyMock {
20
21         /** Tell gwt-test-utils to use this mock when trying to create this class via GWT.create() in OnlineGlom.
22          */
23         @Mock
24         private AppPlaceHistoryMapper mockAppPlaceHistoryMapper;
25
26         private OnlineGlom app;
27
28
29         @Test
30         public void testSomething() {
31                 assertTrue(true);
32                 /* TODO: For instance:
33                 // Arrange
34                 Browser.fillText(app.nameField, "123");
35
36                 // Act
37                 Browser.click(app.sendButton);
38
39                 // Assert
40                 assertFalse(app.dialogBox.isShowing());
41                 assertEquals("Please enter at least four characters",
42                         app.errorLabel.getText());
43                 */
44         }
45
46         @Override
47         public String getModuleName() {
48                 return "org.glom.web.OnlineGlom";
49         }
50
51         @Before
52         public void beforeOnlineGlom() {
53                 app = new OnlineGlom();
54                 app.onModuleLoad();
55
56                 /* TODO: For instance,
57                 // Some pre-assertions
58                 assertFalse(app.dialogBox.isShowing());
59                 assertEquals("", app.errorLabel.getText());
60                 */
61         }
62
63 }