Package ch.epfl.lbd.io.readers

Examples of ch.epfl.lbd.io.readers.FileReader


public class TestFileReader extends Tester{

  @Test
  public void run() throws Exception {
    super.run();
    Reader reader = new FileReader(new File("src/assets/test.txt"));
    String value;
    reader.open();
    value = (String)reader.read()[0];
    while(value != null){
      logger.info(value);
      Assert.assertTrue(value.contains("this is the "));
      value = (String)reader.read()[0];
    }
  }
View Full Code Here

TOP

Related Classes of ch.epfl.lbd.io.readers.FileReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.