Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 4 package org.roller; 5 6 import org.roller.business.FileManagerTest; 7 import org.roller.util.Blacklist; 8 9 import junit.framework.Test; 10 import junit.framework.TestCase; 11 import junit.framework.TestSuite; 12 13 16 public class BlacklistTest extends TestCase 17 { 18 private Blacklist blacklist; 19 20 23 public BlacklistTest() 24 { 25 super(); 26 } 27 28 31 public BlacklistTest(String arg0) 32 { 33 super(arg0); 34 } 35 36 39 protected void setUp() throws Exception  40 { 41 super.setUp(); 42 blacklist = Blacklist.getBlacklist(null,null); 43 } 44 45 48 protected void tearDown() throws Exception  49 { 50 super.tearDown(); 51 } 53 54 public void testIsBlacklisted0() 55 { 56 assertFalse(blacklist.isBlacklisted("four score and seven years ago.com")); 57 } 58 59 public void testIsBlacklisted1() 61 { 62 assertTrue(blacklist.isBlacklisted("00000-online-casino.com")); 63 } 64 65 public void testIsBlacklisted2() 67 { 68 assertTrue(blacklist.isBlacklisted("www.lsotr.com")); 69 } 70 71 public void testIsBlacklisted3() 73 { 74 assertTrue(blacklist.isBlacklisted("www.lsotr.com")); 75 } 76 77 public void testIsBlacklisted4() 79 { 80 assertTrue(blacklist.isBlacklisted("blow-job.com")); 81 } 82 83 public void testIsBlacklisted5() 85 { 86 assertTrue(blacklist.isBlacklisted("buymoreonline.com")); 87 } 88 89 public void testIsBlacklisted6() 91 { 92 assertTrue(blacklist.isBlacklisted("diet-enlargement.com")); 93 } 94 95 public void testIsBlacklisted7() 97 { 98 assertTrue(blacklist.isBlacklisted("viagra.com")); 99 } 100 101 public void testIsBlacklisted8() 103 { 104 assertTrue(blacklist.isBlacklisted("ragazze-something.com")); 105 } 106 107 public static Test suite() 108 { 109 return new TestSuite(BlacklistTest.class); 110 } 111 } 112
| Popular Tags
|