Refactor to conform to method naming conventions
git-svn-id: http://google-refine.googlecode.com/svn/trunk@2344 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
ab950689dd
commit
fe7bf1d1f0
@ -86,16 +86,16 @@ public class ExcelImporterTests extends ImporterTest {
|
||||
|
||||
@Override
|
||||
@BeforeMethod
|
||||
public void SetUp(){
|
||||
super.SetUp();
|
||||
public void setUp(){
|
||||
super.setUp();
|
||||
SUT = new ExcelImporter();
|
||||
}
|
||||
|
||||
@Override
|
||||
@AfterMethod
|
||||
public void TearDown(){
|
||||
public void tearDown(){
|
||||
SUT = null;
|
||||
super.TearDown();
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
//---------------------read tests------------------------
|
||||
|
@ -33,16 +33,16 @@ public class FixedWidthImporterTests extends ImporterTest {
|
||||
|
||||
@Override
|
||||
@BeforeMethod
|
||||
public void SetUp(){
|
||||
super.SetUp();
|
||||
public void setUp(){
|
||||
super.setUp();
|
||||
SUT = new FixedWidthImporter();
|
||||
}
|
||||
|
||||
@Override
|
||||
@AfterMethod
|
||||
public void TearDown(){
|
||||
public void tearDown(){
|
||||
SUT = null;
|
||||
super.TearDown();
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
//---------------------read tests------------------------
|
||||
|
@ -31,7 +31,7 @@ abstract class ImporterTest extends RefineTest {
|
||||
|
||||
protected JSONObject options;
|
||||
|
||||
public void SetUp(){
|
||||
public void setUp(){
|
||||
//FIXME - should we try and use mock(Project.class); - seems unnecessary complexity
|
||||
|
||||
servlet = new RefineServletStub();
|
||||
@ -43,7 +43,7 @@ abstract class ImporterTest extends RefineTest {
|
||||
options = Mockito.mock(JSONObject.class);
|
||||
}
|
||||
|
||||
public void TearDown(){
|
||||
public void tearDown(){
|
||||
project = null;
|
||||
metadata = null;
|
||||
|
||||
|
@ -72,14 +72,14 @@ public class JsonImporterTests extends ImporterTest {
|
||||
|
||||
@Override
|
||||
@BeforeMethod
|
||||
public void SetUp(){
|
||||
super.SetUp();
|
||||
public void setUp(){
|
||||
super.setUp();
|
||||
SUT = new JsonImporter();
|
||||
}
|
||||
|
||||
@Override
|
||||
@AfterMethod
|
||||
public void TearDown() {
|
||||
public void tearDown() {
|
||||
SUT = null;
|
||||
if (inputStream != null) {
|
||||
try {
|
||||
@ -89,7 +89,7 @@ public class JsonImporterTests extends ImporterTest {
|
||||
}
|
||||
inputStream = null;
|
||||
}
|
||||
super.TearDown();
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -58,8 +58,8 @@ public class RdfTripleImporterTests extends ImporterTest {
|
||||
|
||||
@Override
|
||||
@BeforeMethod
|
||||
public void SetUp(){
|
||||
super.SetUp();
|
||||
public void setUp(){
|
||||
super.setUp();
|
||||
SUT = new RdfTripleImporter();
|
||||
JSONUtilities.safePut(options, "base-url", "http://rdf.freebase.com");
|
||||
}
|
||||
|
@ -65,16 +65,16 @@ public class TsvCsvImporterTests extends ImporterTest {
|
||||
|
||||
@Override
|
||||
@BeforeMethod
|
||||
public void SetUp() {
|
||||
super.SetUp();
|
||||
public void setUp() {
|
||||
super.setUp();
|
||||
SUT = new SeparatorBasedImporter();
|
||||
}
|
||||
|
||||
@Override
|
||||
@AfterMethod
|
||||
public void TearDown(){
|
||||
public void tearDown(){
|
||||
SUT = null;
|
||||
super.TearDown();
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
@Test(dataProvider = "CSV-TSV-AutoDetermine")
|
||||
|
@ -71,14 +71,14 @@ public class XmlImporterTests extends ImporterTest {
|
||||
|
||||
@Override
|
||||
@BeforeMethod
|
||||
public void SetUp(){
|
||||
super.SetUp();
|
||||
public void setUp(){
|
||||
super.setUp();
|
||||
SUT = new XmlImporter();
|
||||
}
|
||||
|
||||
@Override
|
||||
@AfterMethod
|
||||
public void TearDown() {
|
||||
public void tearDown() {
|
||||
SUT = null;
|
||||
if (inputStream != null) {
|
||||
try {
|
||||
@ -88,7 +88,7 @@ public class XmlImporterTests extends ImporterTest {
|
||||
}
|
||||
inputStream = null;
|
||||
}
|
||||
super.TearDown();
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -351,6 +351,7 @@ public class XmlImporterTests extends ImporterTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void parseOneFile(TreeImportingParserBase parser, InputStream inputStream, JSONObject options) {
|
||||
parseOneInputStream(parser, inputStream, options);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user