convert tests from JUnit3 to JUnit4

* life goes on :-)
* touching all tests that directly inherit from junit.framework.TestCase
This commit is contained in:
René Scheibe committed 2014-12-27 22:41:09 +01:00
1 parent 447fe9c5b8
commit 73efe6825a
26 files changed
+440 -290

No files matched your search

@@ -23,13 +23,16 @@
*/
package hudson;
import junit.framework.TestCase;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import java.net.Proxy;
public class ProxyConfigurationTest extends TestCase {
public class ProxyConfigurationTest {
public void testNoProxyHost() {
@Test
public void noProxyHost() {
String noProxyHost = "*.example.com|192.168.*";
assertEquals(Proxy.Type.HTTP, ProxyConfiguration.createProxy("test.example.co.jp", "proxy.example.com", 8080, noProxyHost).type());
assertEquals(Proxy.Type.DIRECT, ProxyConfiguration.createProxy("test.example.com", "proxy.example.com", 8080, noProxyHost).type());