@@ -0,0 +1,2268 @@
+/*******************************************************************************%0A * Copyright 2014 Guy Davenport Licensed under the Apache License, Version 2.0%0A * (the %22License%22); you may not use this file except in compliance with the%0A * License. You may obtain a copy of the License at%0A * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law%0A * or agreed to in writing, software distributed under the License is%0A * distributed on an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied. See the License for the specific language%0A * governing permissions and limitations under the License.%0A *******************************************************************************/%0Apackage org.corehunter.tests;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.corehunter.Corehunter;%0Aimport org.corehunter.data.DistanceMatrixData;%0Aimport org.corehunter.objectives.distance.AverageDistanceObjective;%0Aimport org.corehunter.tests.TestData;%0Aimport org.jamesframework.core.subset.SubsetSolution;%0Aimport org.junit.Test;%0A%0A/**%0A * @author Guy Davenport%0A */%0Apublic class ITCorehunter extends TestData%0A%7B%0A%09/**%0A%09 * Test method for%0A%09 * %7B@link org.corehunter.Corehunter#executeRandomDescent(org.corehunter.DistanceMatrixData, org.jamesframework.core.problems.objectives.Objective, int)%7D%0A%09 * .%0A%09 */%0A%09public void testExecuteRandomDescent()%0A%09%7B%0A%09%09Corehunter%3CDistanceMatrixData%3E corehunter = new Corehunter%3CDistanceMatrixData%3E();%0A%0A%09%09corehunter.setTimeLimit(2);%0A%0A%09%09SubsetSolution result = corehunter.executeRandomDescent(DATA,%0A%09%09    new AverageDistanceObjective(), 2, null);%0A%0A%09%09assertEquals(SUBSET1, result.getSelectedIDs());%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link org.corehunter.Corehunter#getTimeLimit()%7D.%0A%09 */%0A%09@Test%0A%09public void testGetTimeLimit()%0A%09%7B%0A%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link org.corehunter.Corehunter#setTimeLimit(long)%7D.%0A%09 */%0A%09@Test%0A%09public void testSetTimeLimit()%0A%09%7B%0A%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link org.corehunter.Corehunter#getSearchListener()%7D.%0A%09 */%0A%09@Test%0A%09public void testGetSearchListener()%0A%09%7B%0A%0A%09%7D%0A%0A%09/**%0A%09 * Test method for%0A%09 * %7B@link org.corehunter.Corehunter#setSearchListener(org.jamesframework.core.search.listeners.SearchListener)%7D%0A%09 * .%0A%09 */%0A%09@Test%0A%09public void testSetSearchListener()%0A%09%7B%0A%0A%09%7D%0A%0A%7D%0A

Add IT