Project

General

Profile

« Previous | Next » 

Revision 52615

modified test

View differences:

modules/dnet-collector-plugins/trunk/src/test/java/eu/dnetlib/data/collector/plugins/excel/ReadExcelTest.java
48 48
	@Test
49 49
	public void readExcelFromUrl()throws Exception{
50 50
		Iterator<String> it = r.parseFile().iterator();
51

  
52
		while(it.hasNext()){
53
			Assert.assertNotNull(it.next());
54
			//System.out.println(it.next());
51
		int i = 0;
52
		String st = null;
53
		try {
54
			while (it.hasNext()) {
55
				st = it.next();
56
				Assert.assertNotNull(st);
57
				i++;
58
				//System.out.println(it.next());
59
			}
60
		}catch(Exception e){
61
			System.out.println("linea " + i);
62
			e.printStackTrace();
63
			System.out.println(st);
55 64
		}
56 65

  
57

  
58 66
	}
59 67
}

Also available in: Unified diff