Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertuya committed Jun 23, 2024
1 parent 5ed3174 commit 0f44eeb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

import giis.tdrules.store.loader.DataLoader;

public class TestOracleSqlLoader extends TestSqlserverSqlLoader {
public class TestOracleSqlLoad extends TestSqlserverSqlLoad {

public TestOracleSqlLoader() {
public TestOracleSqlLoad() {
this.dbmsname = "oracle";
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package test4giis.tdrules.store.loader.rdb;

public class TestPostgresSqlLoad extends TestSqlserverSqlLoad {

public TestPostgresSqlLoad() {
this.dbmsname = "postgres";
}

}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

import java.io.File;
import java.io.IOException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Arrays;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
Expand All @@ -33,9 +29,7 @@
/**
* Data load to a Relational Database through sql
*/
public class TestSqlserverSqlLoader extends Base {
protected static String TEST_PATH_OUTPUT = "target";
protected static String TEST_PATH_BENCHMARK = "src/test/resources";
public class TestSqlserverSqlLoad extends Base {
protected Connection db;
protected StoreType dbms;

Expand All @@ -52,7 +46,6 @@ public void tearDown() throws SQLException {
db.close();
}

// constantes y manipulacion de campos/tipos, etc. dependientes de la base de datos
protected String getDate1() {
return "2008-09-01";
}
Expand Down Expand Up @@ -388,12 +381,4 @@ public void testForeignKeysNoLive() throws SQLException {
assertEquals(sql.toLowerCase(), dtg.getDataAdapter().getAllAsString().toLowerCase());
}

protected void fileWrite(String path, String fileName, String value) throws IOException {
FileUtils.writeStringToFile(new File(FilenameUtils.concat(path, fileName)), value, "UTF-8");
}

protected String fileRead(String path, String fileName) throws IOException {
return FileUtils.readFileToString(new File(FilenameUtils.concat(path, fileName)), "UTF-8");
}

}

0 comments on commit 0f44eeb

Please sign in to comment.