You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TestServerTest.java 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*******************************************************************************
  2. * Copyright (c) 2006 IBM Corporation and others.
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors:
  9. * Matthew Webster - initial implementation
  10. *******************************************************************************/
  11. package org.aspectj.testing.server;
  12. import java.io.IOException;
  13. import junit.framework.TestCase;
  14. public class TestServerTest extends TestCase {
  15. private TestServer server;
  16. protected void setUp() throws Exception {
  17. super.setUp();
  18. server = new TestServer();
  19. server.setExitOntError(false);
  20. }
  21. public void testInitialize() {
  22. try {
  23. server.setWorkingDirectory("./testdata");
  24. server.initialize();
  25. }
  26. catch (IOException ex) {
  27. fail(ex.toString());
  28. }
  29. }
  30. public void testSetWorkingDirectory() {
  31. server.setWorkingDirectory("./testdata");
  32. }
  33. }