1
2
3
4
5
6
7
8
9
10
11
12
13 package com.eviware.soapui.impl.wsdl.support.http;
14
15 import junit.framework.TestCase;
16
17 public class ProxyUtilsTestCase extends TestCase
18 {
19 public void testExcludes()
20 {
21 assertFalse( ProxyUtils.excludes( new String[] { ""} , "www.test.com", 8080 ));
22 assertTrue( ProxyUtils.excludes( new String[] { "test.com"} , "www.test.com", 8080 ));
23 assertFalse( ProxyUtils.excludes( new String[] { "test2.com"} , "www.test.com", 8080));
24 assertTrue( ProxyUtils.excludes( new String[] { "test.com:8080"} , "www.test.com", 8080 ));
25 assertFalse( ProxyUtils.excludes( new String[] { "test2.com:8080"} , "www.test.com", 8080 ));
26 assertFalse( ProxyUtils.excludes( new String[] { "test.com:8081"} , "www.test.com", 8080 ));
27 assertTrue( ProxyUtils.excludes( new String[] { "test.com:8080","test.com:8081"} , "www.test.com", 8080 ));
28 assertTrue( ProxyUtils.excludes( new String[] { "test.com:8080","test.com"} , "www.test.com", 8080 ));
29 }
30 }