Eclipse .launch file for tests now correctly points to project 'grefine' rather than incorrect 'refine'.
XmlImport tests now pass - the tests themselves were not testing the current xml being input to them. git-svn-id: http://google-refine.googlecode.com/svn/trunk@1320 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
6273332cef
commit
2df0d1ac3a
@ -5,7 +5,7 @@
|
||||
<listEntry value="/refine/src/main/webapp/WEB-INF/classes"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.testng.remote.RemoteTestNG"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="refine"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="grefine"/>
|
||||
<mapAttribute key="org.testng.eclipse.ALL_CLASS_METHODS"/>
|
||||
<listAttribute key="org.testng.eclipse.CLASS_TEST_LIST"/>
|
||||
<stringAttribute key="org.testng.eclipse.COMPLIANCE_LEVEL" value="JDK"/>
|
||||
|
@ -156,7 +156,7 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
||||
log(project);
|
||||
assertProjectCreated(project, 0, 6);
|
||||
|
||||
Assert.assertEquals(project.rows.get(0).cells.size(), 4);
|
||||
Assert.assertEquals(project.rows.get(0).cells.size(), 5);
|
||||
|
||||
Assert.assertEquals(columnGroup.subgroups.size(), 1);
|
||||
Assert.assertNotNull(columnGroup.subgroups.get("book"));
|
||||
@ -175,8 +175,8 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
||||
|
||||
log(project);
|
||||
assertProjectCreated(project, 0, 6);
|
||||
Assert.assertEquals(project.rows.get(0).cells.size(), 4);
|
||||
Assert.assertEquals(project.rows.get(5).cells.size(), 5);
|
||||
Assert.assertEquals(project.rows.get(0).cells.size(), 5);
|
||||
Assert.assertEquals(project.rows.get(5).cells.size(), 6);
|
||||
|
||||
Assert.assertEquals(columnGroup.subgroups.size(), 1);
|
||||
Assert.assertEquals(columnGroup.name, "");
|
||||
@ -232,7 +232,7 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
||||
log(project);
|
||||
assertProjectCreated(project, 0, 6);
|
||||
|
||||
Assert.assertEquals(project.rows.get(0).cells.size(), 4);
|
||||
Assert.assertEquals(project.rows.get(0).cells.size(), 5);
|
||||
//TODO
|
||||
}
|
||||
|
||||
@ -252,8 +252,8 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
||||
Assert.assertEquals(project.rows.size(), 1);
|
||||
Row row = project.rows.get(0);
|
||||
Assert.assertNotNull(row);
|
||||
Assert.assertNotNull(row.getCell(1));
|
||||
Assert.assertEquals(row.getCell(1).value, "author1");
|
||||
Assert.assertNotNull(row.getCell(2));
|
||||
Assert.assertEquals(row.getCell(2).value, "author1");
|
||||
|
||||
}
|
||||
|
||||
@ -271,13 +271,15 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
||||
log(project);
|
||||
Assert.assertNotNull(project.rows);
|
||||
Assert.assertEquals(project.rows.size(), 2);
|
||||
|
||||
Row row = project.rows.get(0);
|
||||
Assert.assertNotNull(row);
|
||||
Assert.assertEquals(row.cells.size(), 3);
|
||||
Assert.assertNotNull(row.getCell(1));
|
||||
Assert.assertEquals(row.getCell(1).value, "author1");
|
||||
Assert.assertEquals(row.cells.size(), 4);
|
||||
Assert.assertNotNull(row.getCell(2));
|
||||
Assert.assertEquals(row.getCell(2).value, "author1");
|
||||
|
||||
row = project.rows.get(1);
|
||||
Assert.assertEquals(row.getCell(1).value, "author2");
|
||||
Assert.assertEquals(row.getCell(2).value, "author2");
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -296,11 +298,11 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
||||
Assert.assertEquals(project.rows.size(), 1);
|
||||
Row row = project.rows.get(0);
|
||||
Assert.assertNotNull(row);
|
||||
Assert.assertEquals(row.cells.size(), 4);
|
||||
Assert.assertNotNull(row.getCell(1));
|
||||
Assert.assertEquals(row.getCell(1).value, "author1");
|
||||
Assert.assertEquals(row.cells.size(), 5);
|
||||
Assert.assertNotNull(row.getCell(2));
|
||||
Assert.assertEquals(row.getCell(2).value, "a date");
|
||||
Assert.assertEquals(row.getCell(2).value, "author1");
|
||||
Assert.assertNotNull(row.getCell(3));
|
||||
Assert.assertEquals(row.getCell(3).value, "a date");
|
||||
}
|
||||
|
||||
|
||||
@ -348,8 +350,8 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
||||
//Assert.assertNotNull(record.columnEmptyRowIndices.get(0));
|
||||
//Assert.assertNotNull(record.columnEmptyRowIndices.get(1));
|
||||
Assert.assertEquals(record.rows.get(0).size(), 2);
|
||||
Assert.assertNotNull(record.rows.get(0).get(0));
|
||||
Assert.assertEquals(record.rows.get(0).get(0).value, "Author1, The");
|
||||
Assert.assertNotNull(record.rows.get(0).get(1));
|
||||
Assert.assertEquals(record.rows.get(0).get(1).value, "Author1, The");
|
||||
//Assert.assertEquals(record.columnEmptyRowIndices.get(0).intValue(),0);
|
||||
//Assert.assertEquals(record.columnEmptyRowIndices.get(1).intValue(),1);
|
||||
|
||||
|
@ -62,8 +62,8 @@ public class XmlImporterTests extends RefineTest {
|
||||
|
||||
Row row = project.rows.get(0);
|
||||
Assert.assertNotNull(row);
|
||||
Assert.assertNotNull(row.getCell(1));
|
||||
Assert.assertEquals(row.getCell(1).value, "Author 1, The");
|
||||
Assert.assertNotNull(row.getCell(2));
|
||||
Assert.assertEquals(row.getCell(2).value, "Author 1, The");
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -75,10 +75,10 @@ public class XmlImporterTests extends RefineTest {
|
||||
|
||||
Row row = project.rows.get(0);
|
||||
Assert.assertNotNull(row);
|
||||
Assert.assertEquals(row.cells.size(), 4);
|
||||
Assert.assertEquals(row.cells.size(), 5);
|
||||
Assert.assertNotNull(row.getCell(2));
|
||||
Assert.assertEquals(row.getCell(1).value, "Author 1, The");
|
||||
Assert.assertEquals(project.rows.get(1).getCell(1).value, "Author 1, Another");
|
||||
Assert.assertEquals(row.getCell(2).value, "Author 1, The");
|
||||
Assert.assertEquals(project.rows.get(1).getCell(2).value, "Author 1, Another");
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -91,9 +91,9 @@ public class XmlImporterTests extends RefineTest {
|
||||
|
||||
Row row = project.rows.get(3);
|
||||
Assert.assertNotNull(row);
|
||||
Assert.assertEquals(row.cells.size(), 4);
|
||||
Assert.assertNotNull(row.getCell(1));
|
||||
Assert.assertEquals(row.getCell(1).value, "With line\n break");
|
||||
Assert.assertEquals(row.cells.size(), 5);
|
||||
Assert.assertNotNull(row.getCell(2));
|
||||
Assert.assertEquals(row.getCell(2).value, "With line\n break");
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -107,11 +107,11 @@ public class XmlImporterTests extends RefineTest {
|
||||
|
||||
Row row0 = project.rows.get(0);
|
||||
Assert.assertNotNull(row0);
|
||||
Assert.assertEquals(row0.cells.size(),4);
|
||||
Assert.assertEquals(row0.cells.size(),5);
|
||||
|
||||
Row row5 = project.rows.get(5);
|
||||
Assert.assertNotNull(row5);
|
||||
Assert.assertEquals(row5.cells.size(),5);
|
||||
Assert.assertEquals(row5.cells.size(),6);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user