Assert.assertTrue(this.awaitSuccess(file.close()));
}
private void testReadFile() {
IDfsFileConnector file = this.awaitFileOutcome
(this.connector.openFile(path, DfsModes.READ_SEQUENTIAL));
Assert.assertNotNull(file);
String read1 = new String(this.awaitReadOutcome(file.read(line1.getBytes().length)));
if(!read1.equals(line1)){
System.out.println("ERROR: Read string is not the same as written was...");
}
String read2 = new String(this.awaitReadOutcome(file.read(line2.getBytes().length)));
if(!read2.equals(line2)){
System.out.println("ERROR: Read string is not the same as written was...");
}
String read3 = new String(this.awaitReadOutcome(file.read(line3.getBytes().length)));
if(!read3.equals(line3)){
System.out.println("ERROR: Read string is not the same as written was...");
}
Assert.assertTrue(this.awaitSuccess(file.close()));
}