diff --git a/src/main/java/io/frictionlessdata/tableschema/Table.java b/src/main/java/io/frictionlessdata/tableschema/Table.java index 2b961017..c454b60f 100644 --- a/src/main/java/io/frictionlessdata/tableschema/Table.java +++ b/src/main/java/io/frictionlessdata/tableschema/Table.java @@ -74,7 +74,7 @@ public String[] getHeaders(){ return this.dataSource.getHeaders(); } - public void write(String outputFilePath) throws Exception{ + public void save(String outputFilePath) throws Exception{ this.dataSource.write(outputFilePath); } public List read(boolean cast) throws Exception{ diff --git a/src/test/java/io/frictionlessdata/tableschema/TableTest.java b/src/test/java/io/frictionlessdata/tableschema/TableTest.java index 1f7289fd..1cc4d142 100644 --- a/src/test/java/io/frictionlessdata/tableschema/TableTest.java +++ b/src/test/java/io/frictionlessdata/tableschema/TableTest.java @@ -298,12 +298,12 @@ public void testReadCastData() throws Exception{ } @Test - public void writeTable() throws Exception{ + public void saveTable() throws Exception{ File createdFile = folder.newFile("test_data_table.csv"); String sourceFileAbsPath = TableTest.class.getResource("/fixtures/simple_data.csv").getPath(); Table loadedTable = new Table(sourceFileAbsPath); - loadedTable.write(createdFile.getAbsolutePath()); + loadedTable.save(createdFile.getAbsolutePath()); Table readTable = new Table(createdFile.getAbsolutePath()); Assert.assertEquals(loadedTable.getHeaders()[0], "id");