import at.itsv.kfoqsdb.batch.KfoQsDbBatch;
import at.itsv.kfoqsdb.batch.services.BatchOptions;
import at.itsv.tools.logging.SLF4J;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;

import javax.inject.Inject;

/**
 * Created by Manuel Ratzinger
 * User: 31100732
 * Date: 20.12.2016
 */
public class KfoQsDbBatchTest {

	@Inject
	@SLF4J
	private static Logger log;

	//@Test
	public void testNoArgs(){
		BatchOptions batchOptions = new BatchOptions();
		launch(batchOptions);
	}

	//@Test
	public void testGenerate(){
		BatchOptions batchOptions = new BatchOptions();
		batchOptions.setGenerateReports(true);
		launch(batchOptions);
	}

	//@Test
	public void wrongOptions() {
		String[] args={"x"};
		//KfoQsDbBatch.main(args);
	}

	private void launch(BatchOptions batchOptions) {
		KfoQsDbBatch kfoQsDbBatch = new KfoQsDbBatch();
		try{
			//kfoQsDbBatch.start(batchOptions);
		}
		catch (Exception e){
			log.error("launch() -  something went wrong", e);
			//Assert.fail("Theres something wrong");
		}
	}
}
