import java.io.File;
import java.net.ServerSocket;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Test;
+
import org.apache.catalina.connector.Connector;
import org.apache.catalina.startup.Tomcat;
-import org.apache.catalina.startup.TomcatBaseTest;
-
+import org.apache.catalina.startup.TomcatBaseTestJUnit4;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
-
import org.apache.tomcat.jni.Address;
import org.apache.tomcat.jni.Error;
import org.apache.tomcat.jni.Library;
* Test case for the Endpoint implementations. The testing framework will ensure
* that each implementation is tested.
*/
-public class TestXxxEndpoint extends TomcatBaseTest {
+public class TestXxxEndpoint extends TomcatBaseTestJUnit4 {
private static Log log = LogFactory.getLog(TestXxxEndpoint.class);
}
}
+ @Test
public void testStartStopBindOnInit() throws Exception {
Tomcat tomcat = getTomcatInstance();
File appDir = new File(getBuildDirectory(), "webapps/examples");
tomcat.getConnector().start();
}
+ @Test
public void testStartStopBindOnStart() throws Exception {
Tomcat tomcat = getTomcatInstance();
Connector c = tomcat.getConnector();