Пример #1
0
 private void assertDateField(String expectedDate) {
   String[] expected =
       "".equals(expectedDate) ? new String[] {"", "", ""} : expectedDate.split("-");
   assertEquals(expected[0], dateFieldWrapper.getTextBox("date.dayField").getText());
   assertEquals(expected[1], dateFieldWrapper.getTextBox("date.monthField").getText());
   assertEquals(expected[2], dateFieldWrapper.getTextBox("date.yearField").getText());
 }
 @Override
 protected void setUp() throws Exception {
   log = new LogString();
   crossTablePanel = new RequestCrossTablePanel();
   Panel tablePanel = new Panel(crossTablePanel);
   crossTable = tablePanel.getTable("crossTable");
   fillDataSource();
   Map<String, String> staticColumnFieldsMap = new HashMap<String, String>(1);
   staticColumnFieldsMap.put("scenarioName", "Scenario");
   staticColumnFieldsMap.put("hidden", "Hidden");
   crossTablePanel.setStaticColumnFieldsMap(staticColumnFieldsMap);
   crossTablePanel.bindDataSource(listDataSource, "resource", "nbJours", new String[] {"hidden"});
 }
Пример #3
0
 public void gameContainsCombatPanel() {
   Panel panel = new Panel(frame);
   UISpecAssert.assertTrue(panel.getPanel("CombatPanel").isVisible());
 }