Browse Source

Fix InputTextFrameTest

Fix path of clover snapshot
tags/0.6.3m1rc1
Chris Smith 15 years ago
parent
commit
96263d35a6

+ 1
- 1
build-tests.xml View File

@@ -21,7 +21,7 @@
21 21
     </target>
22 22
 
23 23
     <target name="clover.snapshot" depends="with.clover">
24
-        <clover-snapshot file="${clover.snapshot.file}"/>
24
+        <clover-snapshot/>
25 25
     </target>
26 26
 
27 27
     <target name="clover.xml" if="clover.installed"

+ 10
- 3
test/com/dmdirc/addons/ui_swing/components/InputTextFrameTest.java View File

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.addons.ui_swing.components;
24 24
 
25
+import com.dmdirc.Main;
25 26
 import com.dmdirc.commandparser.parsers.GlobalCommandParser;
26 27
 import com.dmdirc.config.ConfigManager;
27 28
 import com.dmdirc.config.IdentityManager;
@@ -46,6 +47,7 @@ import org.fest.swing.fixture.FrameFixture;
46 47
 import org.fest.swing.fixture.JInternalFrameFixture;
47 48
 import org.junit.After;
48 49
 import org.junit.Before;
50
+import org.junit.BeforeClass;
49 51
 import org.junit.Ignore;
50 52
 import org.junit.Test;
51 53
 import org.junit.runner.RunWith;
@@ -59,6 +61,11 @@ public class InputTextFrameTest implements UITestIface {
59 61
     static TestConfigManagerMap cmmap;
60 62
     static TestWritableFrameContainer owner;
61 63
 
64
+    @BeforeClass
65
+    public static void setUpClass() {
66
+        Main.setUI(new SwingController());
67
+    }
68
+
62 69
     @Before
63 70
     public void setUp() {
64 71
         IdentityManager.load();
@@ -96,7 +103,7 @@ public class InputTextFrameTest implements UITestIface {
96 103
         }
97 104
     }
98 105
 
99
-    @Test @Ignore
106
+    @Test
100 107
     public void testPasteDialogWithTextBefore() throws InterruptedException {
101 108
         window.textBox().enterText("testing:");
102 109
         ((InputTextFrame) window.target).doPaste("line1\nline2");
@@ -115,7 +122,7 @@ public class InputTextFrameTest implements UITestIface {
115 122
         }
116 123
     }
117 124
 
118
-    @Test @Ignore
125
+    @Test
119 126
     public void testPasteDialogWithTextAfter() throws InterruptedException {
120 127
         window.textBox().enterText("<- testing").pressAndReleaseKey(
121 128
                 KeyPressInfo.keyCode(KeyEvent.VK_HOME));
@@ -135,7 +142,7 @@ public class InputTextFrameTest implements UITestIface {
135 142
         }
136 143
     }
137 144
 
138
-    @Test @Ignore
145
+    @Test
139 146
     public void testPasteDialogWithTextAround() throws InterruptedException {
140 147
         window.textBox().enterText("testing:<- testing").selectText(8, 8);
141 148
         ((InputTextFrame) window.target).doPaste("line1\nline2");

Loading…
Cancel
Save