/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.ftpserver.clienttests;

import java.io.IOException;
import java.util.Arrays;

import org.apache.commons.net.ftp.FTPClient;
import org.apache.ftpserver.DataConnectionConfigurationFactory;

/**
*
* From FTPSERVER-250
*
* @author <a href="http://mina.apache.org">Apache MINA Project</a>
*
*/
public class BindExceptionSerialTest extends ClientTestTemplate {
    @Override
    protected FTPClient createFTPClient() throws Exception {
        FTPClient c = super.createFTPClient();
        c.setDataTimeout(1000);
        return c;
    }

    @Override
    protected DataConnectionConfigurationFactory createDataConnectionConfigurationFactory() {
        DataConnectionConfigurationFactory factory = super.createDataConnectionConfigurationFactory();
        factory.setActiveLocalPort(2020);
        factory.setActiveLocalAddress("localhost");
        return factory;
    }

    @Override
    protected void connectClient() throws Exception {
        super.connectClient();
        client.login(ADMIN_USERNAME, ADMIN_PASSWORD);
    }

    public void testSerialExecution() throws Exception {
        try {
            System.out.println("-- call one");
            System.out.println(Arrays.asList(client.listFiles()));
            System.out.println("-- call two");
            System.out.println(Arrays.asList(client.listFiles()));
        } catch (IOException e) {
            e.printStackTrace();
            fail();
        }
    }
}
@@ -1919,105 +1919,21 @@
     
-try %7B%0A            System.out.println(%22-- call one%22);%0A            System.out.println(Arrays.asList
+assertNotNull
 (cli
@@ -1940,33 +1940,32 @@
 ent.listFiles())
-)
 ;%0A            Sy
@@ -1962,210 +1962,42 @@
     
-    System.out.println(%22-- call two%22);%0A            System.out.println(Arrays.asList(client.listFiles()));%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A            fail();%0A        %7D
+assertNotNull(client.listFiles());
 %0A   

Tidy up test (no need for output)