diff --git a/java/dist/build.xml b/java/dist/build.xml index 17eeebfb92f..a9055cc47a3 100644 --- a/java/dist/build.xml +++ b/java/dist/build.xml @@ -187,12 +187,18 @@ + + + + + + @@ -200,8 +206,13 @@ + + + + + diff --git a/java/dist/mcp-test/src/main/java/cardemo/CarDemo.java b/java/dist/mcp-test/src/main/java/cardemo/CarDemo.java new file mode 100755 index 00000000000..6895c9578c6 --- /dev/null +++ b/java/dist/mcp-test/src/main/java/cardemo/CarDemo.java @@ -0,0 +1,29 @@ +/* + * CarDemo.java + * + * Created on March 3, 2007, 2:58 PM + * + * To change this template, choose Tools | Template Manager + * and open the template in the editor. + */ + +package cardemo; + +/** + * + * @author edburns + */ +public class CarDemo { + + /** Creates a new instance of CarDemo */ + public CarDemo() { + } + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/java/dist/mcp-test/src/test/java/cardemo/CarDemoTest.java b/java/dist/mcp-test/src/test/java/cardemo/CarDemoTest.java new file mode 100755 index 00000000000..fc986351db8 --- /dev/null +++ b/java/dist/mcp-test/src/test/java/cardemo/CarDemoTest.java @@ -0,0 +1,43 @@ +/* + * CarDemoTest.java + * JUnit based test + * + * Created on March 3, 2007, 2:31 PM + */ + +package cardemo; + +import org.mozilla.mcp.MCP; +import org.mozilla.webclient.WebclientTestCase; + +/** + * + * @author edburns + */ +public class CarDemoTest extends WebclientTestCase { + + private MCP mcp = null; + + public CarDemoTest(String testName) { + super(testName); + } + + public void setUp() { + super.setUp(); + + mcp = new MCP(); + try { + mcp.setAppData(getBrowserBinDir()); + } + catch (Exception e) { + fail(); + } + + } + + public void testCardemo() throws Exception { + mcp.getRealizedVisibleBrowserWindow(); + mcp.blockingLoad("http://webdev1.sun.com/jsf-ajax-cardemo/faces/chooseLocale.jsp"); + } + +}