1 19 package org.netbeans.test.j2ee; 20 21 import org.netbeans.jellytools.Bundle; 22 import org.netbeans.jellytools.JellyTestCase; 23 import org.netbeans.jellytools.RuntimeTabOperator; 24 import org.netbeans.jellytools.nodes.Node; 25 import org.netbeans.test.j2ee.lib.J2eeProjectSupport; 26 27 public class AppServerTest extends JellyTestCase { 28 private static final String SERVERS = Bundle.getString( 29 "org.netbeans.modules.j2ee.deployment.impl.ui.Bundle", 30 "SERVER_REGISTRY_NODE"); 31 32 public AppServerTest(String s) { 33 super(s); 34 } 35 36 39 public void testWaitAppServerInstall() { 40 RuntimeTabOperator runtime = new RuntimeTabOperator(); 41 runtime.getTimeouts().setTimeout("JTreeOperator.WaitNextNodeTimeout", 90000); 42 new Node(runtime.getRootNode(), SERVERS).expand(); 43 assertTrue("Didn't find an instance of appserver", 44 J2eeProjectSupport.waitForAppServerInstall()); 45 } 46 47 protected void setUp() throws Exception { 48 super.setUp(); 49 } 50 51 protected void tearDown() throws Exception { 52 super.tearDown(); 53 } 54 } 55 | Popular Tags |