1 /* 2 * Copyright (C) 2008 Internet Archive. 3 * 4 * This file is part of the Heritrix web crawler (crawler.archive.org). 5 * 6 * Heritrix is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU Lesser Public License as published by 8 * the Free Software Foundation; either version 2.1 of the License, or 9 * any later version. 10 * 11 * Heritrix is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU Lesser Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser Public License 17 * along with Heritrix; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * 20 * CrawlServerTest.java 21 * 22 * Created on May 21, 2008 23 * 24 * $Id:$ 25 */ 26 package org.archive.crawler.datamodel; 27 28 import junit.framework.TestCase; 29 30 /*** 31 * CrawlServer class unit tests. 32 */ 33 public class CrawlServerTest extends TestCase { 34 35 36 public void testGetServerKey() throws Exception { 37 CandidateURI cauri = CandidateURI.fromString("https://www.example.com"); 38 assertEquals( 39 "bad https key", 40 "www.example.com:443", 41 CrawlServer.getServerKey(cauri)); 42 } 43 44 }