Source code: org/finj/test/BrowsingTest.java
1 package org.finj.test;
2
3 import java.io.IOException;
4
5 import junit.framework.Test;
6 import junit.framework.TestSuite;
7
8 import org.finj.test.FinjTestCase;
9 import org.finj.test.FTPClientTest;
10
11 /**
12 * Tests functionalities related to browsing in FTP commands.
13 *
14 *
15 *
16 * Copyright (C)
17 *
18 * This library is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU Lesser General Public
20 * License as published by the Free Software Foundation; either
21 * version 2.1 of the License, or (at your option) any later version.
22 *
23 * This library is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 * Lesser General Public License for more details.
27 *
28 * You should have received a copy of the GNU Lesser General Public
29 * License along with this library; if not, write to the Free Software
30 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 *
32 * @author Javier Iglesias -- jiglesias@users.sourceforge.net
33 * @version $Id: BrowsingTest.java,v 1.2 2003/10/22 08:26:26 jiglesia Exp $
34 * @since v1.0.2
35 */
36 public class BrowsingTest extends FinjTestCase {
37
38 /**
39 *
40 *
41 * @since v1.0.2
42 */
43 public BrowsingTest ( String name ) {
44 super(name);
45 }
46
47 /**
48 *
49 *
50 * @since v1.0.2
51 */
52 public static Test suite ( ) {
53 TestSuite suite = new TestSuite("tests concerning browsing in FTP commands");
54 suite.addTestSuite(BrowsingTest.class);
55 return suite;
56 }
57
58 /**
59 *
60 *
61 * @since v1.0.2
62 */
63 public void testMakeDirectory ( ) throws IOException {
64 client.makeDirectory();
65 assertTrue(true);
66 }
67
68 /**
69 *
70 *
71 * @since v1.0.2
72 */
73 public void testRemoveDirectory ( ) throws IOException {
74 client.removeDirectory();
75 assertTrue(true);
76 }
77
78 /**
79 *
80 *
81 * @since v1.0.2
82 */
83 public void testWorkingDirectory ( ) throws IOException {
84 client.getWorkingDirectory();
85 assertTrue(true);
86
87 client.setWorkingDirectory();
88 assertTrue(true);
89
90 client.setWorkingDirectoryUp();
91 assertTrue(true);
92
93 client.getWorkingDirectory();
94 assertTrue(true);
95 }
96
97 /**
98 *
99 *
100 * @since v1.0.2
101 */
102 public static void main ( String[] args ) {
103 new BrowsingTest("").runTestInterface(args);
104 }
105 }