/*
 * Copyright 2013 JBoss Inc
 *
 * Licensed 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.optaplanner.examples.machinereassignment.persistence;

import java.io.File;
import java.util.Collection;

import org.junit.Ignore;
import org.junit.runners.Parameterized;
import org.optaplanner.examples.common.persistence.AbstractSolutionImporter;
import org.optaplanner.examples.common.persistence.SolutionImporterTest;

public class MachineReassignmentImporterTest extends SolutionImporterTest {

    @Override
    protected AbstractSolutionImporter createSolutionImporter() {
        return new MachineReassignmentImporter();
    }

    @Parameterized.Parameters(name = "{index}: {0}")
    public static Collection<Object[]> getInputFilesAsParameters() {
        return getInputFilesAsParameters(new MachineReassignmentImporter());
    }

    public MachineReassignmentImporterTest(File solutionFile) {
        super(solutionFile);
    }

}

@@ -704,16 +704,43 @@
 lection;
+%0Aimport java.util.Iterator;
 %0A%0Aimport
@@ -1293,22 +1293,61 @@
         
-return
+Collection%3CObject%5B%5D%3E inputFilesAsParameters =
  getInpu
@@ -1401,16 +1401,439 @@
 ter());%0A
+        for (Iterator%3CObject%5B%5D%3E it = inputFilesAsParameters.iterator(); it.hasNext(); ) %7B%0A            Object%5B%5D inputFilesAsParameter = it.next();%0A            // The dataset B10 requires more than 1GB heap space on JDK 6 to load (not on JDK 7)%0A            if (((File) inputFilesAsParameter%5B0%5D).getName().equals(%22model_b_10.txt%22)) %7B%0A                it.remove();%0A            %7D%0A        %7D%0A        return inputFilesAsParameters;%0A
     %7D%0A%0A 

Remove failing test on JDK 6: the dataset B10 requires more than 1GB heap space on JDK 6 to load (not on JDK 7)