Package de.timefinder.core.io.xml.bt

Source Code of de.timefinder.core.io.xml.bt.ImportBTXmlTest

/*
* This file is part of the TimeFinder project.
* Visit http://www.timefinder.de for more information.
*
* Copyright (c) 2009 the original author or authors.
*
* 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 de.timefinder.core.io.xml.bt;

import de.timefinder.algo.AlgorithmConditionIteration;
import de.timefinder.algo.SilentConsoleStatusBar;
import de.timefinder.algo.ncp.NoCollisionPrinciple;
import de.timefinder.algo.util.TimeFinder2Tester;
import java.io.File;
import java.util.Random;
import org.junit.Before;
import org.junit.Test;

/**
* Created at 16.09.2009 from Mr. Karich - peathal at yah oo dot de
*/
public class ImportBTXmlTest extends TimeFinder2Tester {

    @Before
    @Override
    public void setUp() {
        super.setUp();
    }

    @Test
    public void testDoWork() throws Exception {
        //we should not include this test, because data is unpublished
        ImportBTXml importer = new ImportBTXml(dataPool, new File("/home/peterk/Dokumente/timefinder/import-bt/"));
        ImportBTXml.overwriteSettings(settings);
        importer.setDataPoolSettings(settings);       
        importer.doWork();

        NoCollisionPrinciple ncpInstance = new NoCollisionPrinciple();
        ncpInstance.setRandom(new Random(123456L));
        ncpInstance.setCondition(new AlgorithmConditionIteration(5));
        ncpInstance.setDataPoolSettings(settings);
        ncpInstance.setStatusBar(new SilentConsoleStatusBar());
        ncpInstance.setDataPool(dataPool);

        ncpInstance.doWork();
    }
}
TOP

Related Classes of de.timefinder.core.io.xml.bt.ImportBTXmlTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.