diff options
author | Andy Clement <aclement@pivotal.io> | 2019-01-23 19:45:07 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2019-01-23 19:45:07 -0800 |
commit | a303931ebcf72494bdb75395b350ff640a0ff1f3 (patch) | |
tree | 2e0346be1fda535f80f603aa4214784e704952e9 /testing-client/src/test/java/org/aspectj/testing/server | |
parent | 44f6584f48c77f58ad80115bff0dd637831df939 (diff) | |
download | aspectj-a303931ebcf72494bdb75395b350ff640a0ff1f3.tar.gz aspectj-a303931ebcf72494bdb75395b350ff640a0ff1f3.zip |
mavenizing testing-client module - wip
Diffstat (limited to 'testing-client/src/test/java/org/aspectj/testing/server')
-rw-r--r-- | testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java b/testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java new file mode 100644 index 000000000..0c278588e --- /dev/null +++ b/testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java @@ -0,0 +1,40 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Matthew Webster - initial implementation + *******************************************************************************/ +package org.aspectj.testing.server; + +import java.io.IOException; + +import junit.framework.TestCase; + +public class TestServerTest extends TestCase { + + private TestServer server; + + protected void setUp() throws Exception { + super.setUp(); + server = new TestServer(); + server.setExitOntError(false); + } + + public void testInitialize() { + try { + server.setWorkingDirectory("../testing-client/testdata"); + server.initialize(); + } + catch (IOException ex) { + fail(ex.toString()); + } + } + + public void testSetWorkingDirectory() { + server.setWorkingDirectory("../testing-client/testdata"); + } +} |