ValidityDateSupport1024Columns.java (80a6f5c5) | ValidityDateSupport1024Columns.java (57caf934) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22package fvt.gui.sc.validity; 23 24import static org.junit.Assert.*; 25import static testlib.gui.AppTool.*; 26import static testlib.gui.UIMap.*; 27 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22package fvt.gui.sc.validity; 23 24import static org.junit.Assert.*; 25import static testlib.gui.AppTool.*; 26import static testlib.gui.UIMap.*; 27 |
28import java.io.File; 29 | |
30import org.junit.After; 31import org.junit.Before; 32import org.junit.Rule; 33import org.junit.Test; 34import org.openoffice.test.common.Logger; | 28import org.junit.After; 29import org.junit.Before; 30import org.junit.Rule; 31import org.junit.Test; 32import org.openoffice.test.common.Logger; |
35import org.openoffice.test.vcl.IDList; 36import org.openoffice.test.vcl.widgets.VclMessageBox; | |
37 38import testlib.gui.SCTool; 39 40public class ValidityDateSupport1024Columns { | 33 34import testlib.gui.SCTool; 35 36public class ValidityDateSupport1024Columns { |
41 private static IDList idList = new IDList(new File("./ids")); 42 public static final VclMessageBox ActiveMsgBox = new VclMessageBox(idList.getId("UID_ACTIVE"), "Message on message box."); | |
43 44 @Rule 45 public Logger log = Logger.getLogger(this); 46 47 @Before 48 public void setUp() throws Exception { 49 app.start(true); 50 } --- 31 unchanged lines hidden (view full) --- 82 SCTool.selectRange("ALM1002"); 83 scInputBarInput.activate(); 84 typeKeys("01/02/08<enter>"); 85 assertEquals("01/02/08", SCTool.getCellText("ALM1002")); 86 87 SCTool.selectRange("ALM1003"); 88 scInputBarInput.activate(); 89 typeKeys("01/01/08<enter>"); | 37 38 @Rule 39 public Logger log = Logger.getLogger(this); 40 41 @Before 42 public void setUp() throws Exception { 43 app.start(true); 44 } --- 31 unchanged lines hidden (view full) --- 76 SCTool.selectRange("ALM1002"); 77 scInputBarInput.activate(); 78 typeKeys("01/02/08<enter>"); 79 assertEquals("01/02/08", SCTool.getCellText("ALM1002")); 80 81 SCTool.selectRange("ALM1003"); 82 scInputBarInput.activate(); 83 typeKeys("01/01/08<enter>"); |
90 assertEquals("Invalid value", ActiveMsgBox.getMessage()); 91 ActiveMsgBox.ok(); | 84 assertEquals("Invalid value", activeMsgBox.getMessage()); 85 activeMsgBox.ok(); |
92 assertEquals("", SCTool.getCellText("ALM1003")); 93 94 SCTool.selectRange("AML1003"); 95 scInputBarInput.activate(); 96 typeKeys("12/31/07<enter>"); | 86 assertEquals("", SCTool.getCellText("ALM1003")); 87 88 SCTool.selectRange("AML1003"); 89 scInputBarInput.activate(); 90 typeKeys("12/31/07<enter>"); |
97 assertEquals("Invalid value", ActiveMsgBox.getMessage()); 98 ActiveMsgBox.ok(); | 91 assertEquals("Invalid value", activeMsgBox.getMessage()); 92 activeMsgBox.ok(); |
99 assertEquals("", SCTool.getCellText("AML1003")); 100 } 101} | 93 assertEquals("", SCTool.getCellText("AML1003")); 94 } 95} |