Code example for Scanner

Methods: close, nextLine

0
		File input = new File("src\\test\\resources\\TransObjIn.txt");
		File output = new File("src\\test\\resources\\TransObjOut.txt");
		TransferObject obj = new TransferObject(new FileInputStream(input), new FileOutputStream(
				output));
		int actual = obj.transfer(10, 7);
		Scanner scanner = new Scanner(output);
		int expected = scanner.nextLine().length();
		scanner.close();
		assertEquals(expected, actual);
	} 
}