/*--------------------------------------------------------------*/
 /* Licensed to the Apache Software Foundation (ASF) under one   */
 /* or more contributor license agreements.  See the NOTICE file */
 /* distributed with this work for additional information        */
 /* regarding copyright ownership.  The ASF licenses this file   */
 /* to you under the Apache License, Version 2.0 (the            */
 /* "License"); you may not use this file except in compliance   */
 /* with the License.  You may obtain a copy of the License at   */
 /*                                                              */
 /*   http://www.apache.org/licenses/LICENSE-2.0                 */
 /*                                                              */
 /* Unless required by applicable law or agreed to in writing,   */
 /* software distributed under the License is distributed on an  */
 /* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       */
 /* KIND, either express or implied.  See the License for the    */
 /* specific language governing permissions and limitations      */
 /* under the License.                                           */
 /*--------------------------------------------------------------*/

package org.corehunter.tests;

import static org.junit.Assert.assertEquals;

import org.corehunter.Corehunter;
import org.corehunter.CorehunterArguments;
import org.jamesframework.core.subset.SubsetSolution;
import org.junit.Test;

/**
 * @author Guy Davenport
 */
public class ITCorehunter extends TestData {

    /**
     * Test method for
     * {@link org.corehunter.Corehunter#executeRandomDescent
     * (org.corehunter.DistanceMatrixData, org.jamesframework.core.problems.objectives.Objective, int)}
     * .
     */
    //@Test
    public void testExecuteDistanceMatrix() {
        CorehunterArguments arguments = new CorehunterArguments(2);

        arguments.setDataset(DATA);

        Corehunter corehunter = new Corehunter(arguments);

        corehunter.setTimeLimit(2);

        SubsetSolution result = corehunter.execute();

        assertEquals(SUBSET1, result.getSelectedIDs());
    }

    /**
     * Test method for {@link org.corehunter.Corehunter#getTimeLimit()}.
     */
    @Test
    public void testGetTimeLimit() {

    }

    /**
     * Test method for {@link org.corehunter.Corehunter#setTimeLimit(long)}.
     */
    @Test
    public void testSetTimeLimit() {

    }

    /**
     * Test method for {@link org.corehunter.Corehunter#getSearchListener()}.
     */
    @Test
    public void testGetSearchListener() {

    }

    /**
     * Test method for
     * {@link org.corehunter.Corehunter#setSearchListener(org.jamesframework.core.search.listeners.SearchListener)} .
     */
    @Test
    public void testSetSearchListener() {

    }

}

@@ -60,17 +60,16 @@
 -----*/%0A
- 
 /* Licen
@@ -127,17 +127,16 @@
 ne   */%0A
- 
 /* or mo
@@ -194,17 +194,16 @@
 file */%0A
- 
 /* distr
@@ -261,17 +261,16 @@
      */%0A
- 
 /* regar
@@ -328,17 +328,16 @@
 le   */%0A
- 
 /* to yo
@@ -391,25 +391,24 @@
          */%0A
- 
 /* %22License%22
@@ -462,17 +462,16 @@
 ce   */%0A
- 
 /* with 
@@ -525,25 +525,24 @@
 nse at   */%0A
- 
 /*          
@@ -592,25 +592,24 @@
          */%0A
- 
 /*   http://
@@ -663,17 +663,16 @@
      */%0A
- 
 /*      
@@ -730,17 +730,16 @@
      */%0A
- 
 /* Unles
@@ -793,25 +793,24 @@
 iting,   */%0A
- 
 /* software 
@@ -864,17 +864,16 @@
  an  */%0A
- 
 /* %22AS I
@@ -931,17 +931,16 @@
      */%0A
- 
 /* KIND,
@@ -998,17 +998,16 @@
 e    */%0A
- 
 /* speci
@@ -1065,17 +1065,16 @@
      */%0A
- 
 /* under
@@ -1132,17 +1132,16 @@
      */%0A
- 
 /*------
@@ -1603,16 +1603,16 @@
 Descent%0A
+
      * (
@@ -1706,24 +1706,16 @@
 e, int)%7D
-%0A     * 
 .%0A     *

fix formatting in integration test