mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 20:42:21 +00:00
convert tests from JUnit3 to JUnit4
* life goes on :-) * touching all tests that directly inherit from junit.framework.TestCase
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user