• R/O
  • HTTP
  • SSH
  • HTTPS

tmdmaker: Commit

TMD-Maker(T字形ER図作成ツール)のEclipse Plugin,RCP,Webサイト用


Commit MetaInfo

Revisionf8580446c7bd45b4492df6214e3739c4f38631fc (tree)
Time2019-05-01 21:01:12
Authornakag <nakag@user...>
Commiternakag

Log Message

Add implementation info test.

Change Summary

Incremental Difference

--- /dev/null
+++ b/tests/tmdmaker.ui.test/src/jp/sourceforge/tmdmaker/ui/editor/ImplementTest.java
@@ -0,0 +1,54 @@
1+/*
2+ * Copyright 2009-2019 TMD-Maker Project <https://tmdmaker.osdn.jp/>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+package jp.sourceforge.tmdmaker.ui.editor;
17+
18+import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
19+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
20+import org.junit.Test;
21+import org.junit.runner.RunWith;
22+
23+/**
24+ * TMD-Makerの実装情報のテスト
25+ *
26+ * @author nakag
27+ *
28+ */
29+@RunWith(SWTBotJunit4ClassRunner.class)
30+public class ImplementTest extends AbstractUITest {
31+
32+ @Test
33+ public void testOpenImplementInfoDialog() {
34+ createEntity(50, 50, "顧客番号", 0);
35+
36+ botEditor.click(55, 55);
37+ botEditor.clickContextMenu("Edit implementation information");
38+ SWTBotShell shell = bot.shell("Edit implementation information");
39+ shell.activate();
40+ bot.text(0).setText("impl");
41+ sleep();
42+ bot.tabItem(1).activate();
43+ bot.button("Add").click();
44+ sleep();
45+ shell = bot.shell("Edit keys");
46+ shell.activate();
47+ bot.button("<<").click();
48+ bot.button("OK").click();
49+ bot.tabItem(0).activate();
50+ sleep();
51+ bot.button("OK").click();
52+ sleep();
53+ }
54+}
Show on old repository browser