aboutsummaryrefslogtreecommitdiffstats
path: root/testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java
blob: 0c278588e2dfe5acfa04449b679f4c3fc01df0ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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");
	}
}