1/* 2 * Copyright 2007 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16package org.mockftpserver.test; 17 18import junit.framework.Test; 19 20/** 21 * Unit test suite for the StubFtpServer application 22 * 23 * @version $Revision$ - $Date$ 24 * 25 * @author Chris Mair 26 */ 27public class MockFtpServerTestSuite extends AbstractDirectoryTestSuite { 28 29 private static final String CLASSES_DIR = "target/test-classes"; 30 31 /** 32 * @see org.mockftpserver.test.AbstractDirectoryTestSuite#getTestClassesDirectory() 33 */ 34 protected String getTestClassesDirectory() { 35 return CLASSES_DIR; 36 } 37 38 39 /** 40 * Return the TestSuite containing the tests to be run 41 * @return the test suite as a Test 42 */ 43 public static Test suite() { 44 return new MockFtpServerTestSuite(); 45 } 46 47 /** 48 * Run the test suite 49 */ 50 public static void main(String[] args) throws Exception { 51 junit.textui.TestRunner.run(suite()); 52 } 53 54}