package eu.dnetlib.data;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import java.io.IOException;

import javax.annotation.Resource;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class PaceDatasetGeneratorTest {
	
	private static final int nRecord = 10000000;
	
	@Resource
	private PaceDatasetGenerator importer;

	@Before
	public void setUp() throws IOException {
		
	}
	
	@Test
	public void test_1() throws IOException {
		assertNotNull(importer);
	}
	
	@Test
	public void test_baseDataset() throws IOException {
		
		long size = importer.createBaseDataset(nRecord);
		assertEquals(nRecord, size);
	}
	

	
}
