1 16 package com.google.gwt.junit.remote; 17 18 import java.rmi.Naming ; 19 20 24 public class BrowserManagerTest { 25 26 private static final int KEEP_ALIVE_MICROSECONDS = 5000; 27 28 36 public static void main(String [] args) throws Exception { 37 if (args.length != 1) { 38 throw new IllegalArgumentException ("Expecting exactly 1 argument."); 39 } 40 BrowserManager browserManager = (BrowserManager) Naming.lookup(args[0]); 41 browserManager.launchNewBrowser("www.google.com", KEEP_ALIVE_MICROSECONDS); 42 } 43 44 47 private BrowserManagerTest() { 48 } 49 } 50 | Popular Tags |