@Test public void readNext実行中に例外が発生した場合は例外が変換される() throws Exception { File f = file.copy("CSVsTest-デフォルト設定で読み込める.csv", "temp.csv"); thrown.expect(InternalException.class); thrown.expectMessage("読込処理中にIO例外が発生しました。"); CSVReader m = mock(CSVReader.class); doThrow(new IOException()).when(m).readNext(); CSVReaders reader = CSVs.readers(f); reader.csv = m; reader.next(); }
public static CSVReaders readers(File file) { return new CSVReaders(file); }
CSVs { public static CSVReaders readers(File file) { return new CSVReaders(file); } }
CSVs { public static CSVReaders readers(File file) { return new CSVReaders(file); } private  CSVs(); }
CSVs { public static CSVReaders readers(File file) { return new CSVReaders(file); } private  CSVs(); static CSVWriters writers(); static CSVWriters writers(CSVConfig config); static CSVReaders readers(File file); static CSVReaders readers(String file); static CSVReaders readers(File file, CSVConfig config); static CSVReaders readers(String file, CSVConfig config); static BeanMappingCSVReaders<T> readers(File file, Class<T> type); static BeanMappingCSVReaders<T> readers(File file, CSVConfig config, Class<T> type); static BeanMappingCSVReaders<T> readers(String file, Class<T> type); static BeanMappingCSVReaders<T> readers(String file, CSVConfig config, Class<T> type); }
CSVs { public static CSVReaders readers(File file) { return new CSVReaders(file); } private  CSVs(); static CSVWriters writers(); static CSVWriters writers(CSVConfig config); static CSVReaders readers(File file); static CSVReaders readers(String file); static CSVReaders readers(File file, CSVConfig config); static CSVReaders readers(String file, CSVConfig config); static BeanMappingCSVReaders<T> readers(File file, Class<T> type); static BeanMappingCSVReaders<T> readers(File file, CSVConfig config, Class<T> type); static BeanMappingCSVReaders<T> readers(String file, Class<T> type); static BeanMappingCSVReaders<T> readers(String file, CSVConfig config, Class<T> type);  }