1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.webphotos.netbeans;
17
18 import junit.framework.Test;
19 import org.junit.Ignore;
20 import org.netbeans.jellytools.JellyTestCase;
21 import org.netbeans.jellytools.TopComponentOperator;
22 import org.netbeans.jellytools.actions.Action;
23 import org.netbeans.jemmy.operators.JButtonOperator;
24 import org.netbeans.junit.NbModuleSuite;
25 import org.netbeans.junit.NbModuleSuite.Configuration;
26
27
28
29
30
31 @Ignore
32 public class WebPhotosTest extends JellyTestCase {
33
34
35
36
37 public WebPhotosTest(String name) {
38 super(name);
39 }
40
41
42
43
44
45 public static Test suite() {
46 Configuration testConfig = NbModuleSuite.createConfiguration(WebPhotosTest.class);
47 testConfig = testConfig.addTest("testNewProjectButton", "testNewProjectAction");
48 testConfig = testConfig.clusters(".*").enableModules(".*");
49 return testConfig.suite();
50 }
51
52
53
54
55 @Override
56 public void setUp() {
57 System.out.println("######## " + getName() + " #######");
58 }
59
60
61
62
63 public void testNewProjectAction() {
64 new Action("File|New Project", null).perform();
65 }
66
67
68
69
70 public void testNewProjectButton() {
71 new JButtonOperator(new TopComponentOperator("Image"), "New Project").push();
72 }
73 }