Remove informational logging from tests that are passing (#2923)
* Change logging from info to debug * Make tests less chatty when they're passing
This commit is contained in:
parent
f00129b852
commit
ed68541988
@ -63,8 +63,6 @@ public class SqlCreateBuilder {
|
|||||||
List<JsonNode> columnOptionArray = options == null ? Collections.emptyList() : JSONUtilities.getArray(options, "columns");
|
List<JsonNode> columnOptionArray = options == null ? Collections.emptyList() : JSONUtilities.getArray(options, "columns");
|
||||||
boolean trimColNames = options == null ? false : JSONUtilities.getBoolean(options, "trimColumnNames", false);
|
boolean trimColNames = options == null ? false : JSONUtilities.getBoolean(options, "trimColumnNames", false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int count = columnOptionArray.size();
|
int count = columnOptionArray.size();
|
||||||
|
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
@ -75,7 +73,7 @@ public class SqlCreateBuilder {
|
|||||||
String size = JSONUtilities.getString(columnOptions, "size", "");
|
String size = JSONUtilities.getString(columnOptions, "size", "");
|
||||||
boolean allowNull = JSONUtilities.getBoolean(columnOptions, "allowNull", true);
|
boolean allowNull = JSONUtilities.getBoolean(columnOptions, "allowNull", true);
|
||||||
String defaultValue = JSONUtilities.getString(columnOptions, "defaultValue", null);
|
String defaultValue = JSONUtilities.getString(columnOptions, "defaultValue", null);
|
||||||
logger.info("allowNull::{}" , allowNull);
|
logger.debug("allowNull::{}" , allowNull);
|
||||||
|
|
||||||
String allowNullStr = "NULL";
|
String allowNullStr = "NULL";
|
||||||
if(!allowNull) {
|
if(!allowNull) {
|
||||||
|
@ -134,13 +134,11 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String result = writer.toString();
|
String result = writer.toString();
|
||||||
logger.info("result = \n" + result);
|
logger.debug("result = \n" + result);
|
||||||
Assert.assertNotNull(result);
|
Assert.assertNotNull(result);
|
||||||
assertNotEquals(writer.toString(), SqlExporter.NO_OPTIONS_PRESENT_ERROR);
|
assertNotEquals(writer.toString(), SqlExporter.NO_OPTIONS_PRESENT_ERROR);
|
||||||
boolean checkResult = result.contains("CREATE TABLE " + tableName);
|
boolean checkResult = result.contains("CREATE TABLE " + tableName);
|
||||||
//logger.info("checkResult1 =" + checkResult);
|
|
||||||
checkResult = result.contains("INSERT INTO " + tableName);
|
checkResult = result.contains("INSERT INTO " + tableName);
|
||||||
// logger.info("checkResult2 =" + checkResult);
|
|
||||||
Assert.assertEquals(checkResult, true);
|
Assert.assertEquals(checkResult, true);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -196,7 +194,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
ObjectNode optionsJson = (ObjectNode) createOptionsFromProject(tableName, null,null);
|
ObjectNode optionsJson = (ObjectNode) createOptionsFromProject(tableName, null,null);
|
||||||
optionsJson.put("includeStructure", false);
|
optionsJson.put("includeStructure", false);
|
||||||
when(options.getProperty("options")).thenReturn(optionsJson.toString());
|
when(options.getProperty("options")).thenReturn(optionsJson.toString());
|
||||||
// logger.info("Options = " + optionsJson.toString());
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
SUT.export(project, options, engine, writer);
|
SUT.export(project, options, engine, writer);
|
||||||
@ -205,7 +202,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String result = writer.toString();
|
String result = writer.toString();
|
||||||
//logger.info("result = \n" + result);
|
|
||||||
Assert.assertNotNull(result);
|
Assert.assertNotNull(result);
|
||||||
assertNotEquals(writer.toString(), SqlExporter.NO_OPTIONS_PRESENT_ERROR);
|
assertNotEquals(writer.toString(), SqlExporter.NO_OPTIONS_PRESENT_ERROR);
|
||||||
boolean checkResult = result.contains("CREATE TABLE " + tableName);
|
boolean checkResult = result.contains("CREATE TABLE " + tableName);
|
||||||
@ -223,7 +219,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
ObjectNode optionsJson = (ObjectNode) createOptionsFromProject(tableName, null, null);
|
ObjectNode optionsJson = (ObjectNode) createOptionsFromProject(tableName, null, null);
|
||||||
optionsJson.put("includeContent", false);
|
optionsJson.put("includeContent", false);
|
||||||
when(options.getProperty("options")).thenReturn(optionsJson.toString());
|
when(options.getProperty("options")).thenReturn(optionsJson.toString());
|
||||||
//logger.info("Options = " + optionsJson.toString());
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
SUT.export(project, options, engine, writer);
|
SUT.export(project, options, engine, writer);
|
||||||
@ -232,7 +227,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String result = writer.toString();
|
String result = writer.toString();
|
||||||
// logger.info("result = \n" + result);
|
|
||||||
Assert.assertNotNull(result);
|
Assert.assertNotNull(result);
|
||||||
assertNotEquals(writer.toString(), SqlExporter.NO_OPTIONS_PRESENT_ERROR);
|
assertNotEquals(writer.toString(), SqlExporter.NO_OPTIONS_PRESENT_ERROR);
|
||||||
boolean checkResult = result.contains("CREATE TABLE " + tableName);
|
boolean checkResult = result.contains("CREATE TABLE " + tableName);
|
||||||
@ -252,7 +246,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
optionsJson.put("includeDropStatement", true);
|
optionsJson.put("includeDropStatement", true);
|
||||||
|
|
||||||
when(options.getProperty("options")).thenReturn(optionsJson.toString());
|
when(options.getProperty("options")).thenReturn(optionsJson.toString());
|
||||||
//logger.info("Options = " + optionsJson.toString());
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
SUT.export(project, options, engine, writer);
|
SUT.export(project, options, engine, writer);
|
||||||
@ -261,7 +254,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String result = writer.toString();
|
String result = writer.toString();
|
||||||
//logger.info("result = " + result);
|
|
||||||
|
|
||||||
Assert.assertNotNull(result);
|
Assert.assertNotNull(result);
|
||||||
// assertNotEquals(writer.toString(), SqlExporter.NO_OPTIONS_PRESENT_ERROR);
|
// assertNotEquals(writer.toString(), SqlExporter.NO_OPTIONS_PRESENT_ERROR);
|
||||||
@ -269,15 +261,12 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
|
|
||||||
boolean checkResult = result.contains("CREATE TABLE " + tableName);
|
boolean checkResult = result.contains("CREATE TABLE " + tableName);
|
||||||
Assert.assertEquals(checkResult, true);
|
Assert.assertEquals(checkResult, true);
|
||||||
//logger.info("checkResult1 = " + checkResult);
|
|
||||||
|
|
||||||
checkResult = result.contains("INSERT INTO " + tableName );
|
checkResult = result.contains("INSERT INTO " + tableName );
|
||||||
Assert.assertEquals(checkResult, true);
|
Assert.assertEquals(checkResult, true);
|
||||||
//logger.info("checkResult2 = " + checkResult);
|
|
||||||
|
|
||||||
checkResult = result.contains("DROP TABLE IF EXISTS " + tableName + ";");
|
checkResult = result.contains("DROP TABLE IF EXISTS " + tableName + ";");
|
||||||
Assert.assertEquals(checkResult, true);
|
Assert.assertEquals(checkResult, true);
|
||||||
//logger.info("checkResult3 = " + checkResult);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,12 +277,10 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
String type = "CHAR";
|
String type = "CHAR";
|
||||||
String size = "2";
|
String size = "2";
|
||||||
JsonNode optionsJson = createOptionsFromProject(tableName, type, size);
|
JsonNode optionsJson = createOptionsFromProject(tableName, type, size);
|
||||||
// logger.info("Options:: = " + optionsJson.toString());
|
|
||||||
List<String> columns = project.columnModel.columns.stream().map(col -> col.getName()).collect(Collectors.toList());
|
List<String> columns = project.columnModel.columns.stream().map(col -> col.getName()).collect(Collectors.toList());
|
||||||
|
|
||||||
sqlCreateBuilder = new SqlCreateBuilder(tableName, columns, optionsJson);
|
sqlCreateBuilder = new SqlCreateBuilder(tableName, columns, optionsJson);
|
||||||
String createSql = sqlCreateBuilder.getCreateSQL();
|
String createSql = sqlCreateBuilder.getCreateSQL();
|
||||||
//logger.info("createSql = \n" + createSql);
|
|
||||||
Assert.assertNotNull(createSql);
|
Assert.assertNotNull(createSql);
|
||||||
boolean result = createSql.contains(type + "(" + size + ")");
|
boolean result = createSql.contains(type + "(" + size + ")");
|
||||||
Assert.assertEquals(result, true);
|
Assert.assertEquals(result, true);
|
||||||
@ -312,7 +299,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
|
|
||||||
|
|
||||||
when(options.getProperty("options")).thenReturn(optionsJson.toString());
|
when(options.getProperty("options")).thenReturn(optionsJson.toString());
|
||||||
//logger.info("Options = " + optionsJson.toString());
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
SUT.export(project, options, engine, writer);
|
SUT.export(project, options, engine, writer);
|
||||||
@ -322,8 +308,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
|
|
||||||
String result = writer.toString();
|
String result = writer.toString();
|
||||||
Assert.assertNotNull(result);
|
Assert.assertNotNull(result);
|
||||||
//logger.info("\nresult = " + result);
|
|
||||||
// logger.info("\nNull Count:" + countWordInString(result, "null"));
|
|
||||||
|
|
||||||
int countNull = countWordInString(result, "null");
|
int countNull = countWordInString(result, "null");
|
||||||
Assert.assertEquals(countNull, inNull);
|
Assert.assertEquals(countNull, inNull);
|
||||||
@ -349,11 +333,11 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String result = writer.toString();
|
String result = writer.toString();
|
||||||
logger.info("\nresult:={} ", result);
|
logger.debug("\nresult:={} ", result);
|
||||||
Assert.assertNotNull(result);
|
Assert.assertNotNull(result);
|
||||||
|
|
||||||
int countNull = countWordInString(result, "NOT NULL");
|
int countNull = countWordInString(result, "NOT NULL");
|
||||||
logger.info("\nNot Null Count: {}" , countNull);
|
logger.debug("\nNot Null Count: {}" , countNull);
|
||||||
Assert.assertEquals(countNull, noOfCols);
|
Assert.assertEquals(countNull, noOfCols);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -377,7 +361,7 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String result = writer.toString();
|
String result = writer.toString();
|
||||||
logger.info("\nresult:={} ", result);
|
logger.debug("\nresult:={} ", result);
|
||||||
|
|
||||||
Assert.assertTrue(result.contains("INSERT INTO sql_table_test (column0,column1,column2,column3) VALUES \n" +
|
Assert.assertTrue(result.contains("INSERT INTO sql_table_test (column0,column1,column2,column3) VALUES \n" +
|
||||||
"( 'It''s row0cell0','It''s row0cell1','It''s row0cell2','It''s row0cell3' )"));
|
"( 'It''s row0cell0','It''s row0cell1','It''s row0cell2','It''s row0cell3' )"));
|
||||||
@ -465,7 +449,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
List<Column> cols = project.columnModel.columns;
|
List<Column> cols = project.columnModel.columns;
|
||||||
|
|
||||||
cols.forEach(c -> {
|
cols.forEach(c -> {
|
||||||
//logger.info("Column Name = " + c.getName());
|
|
||||||
ObjectNode columnModel = ParsingUtilities.mapper.createObjectNode();
|
ObjectNode columnModel = ParsingUtilities.mapper.createObjectNode();
|
||||||
columnModel.put("name", c.getName());
|
columnModel.put("name", c.getName());
|
||||||
if(type != null) {
|
if(type != null) {
|
||||||
@ -483,7 +466,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
columnModel.put("type", type);
|
columnModel.put("type", type);
|
||||||
}
|
}
|
||||||
if(size != null) {
|
if(size != null) {
|
||||||
// logger.info(" Size = " + size);
|
|
||||||
columnModel.put("size", size);
|
columnModel.put("size", size);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -502,7 +484,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
List<Column> cols = project.columnModel.columns;
|
List<Column> cols = project.columnModel.columns;
|
||||||
|
|
||||||
cols.forEach(c -> {
|
cols.forEach(c -> {
|
||||||
//logger.info("Column Name = " + c.getName());
|
|
||||||
ObjectNode columnModel = ParsingUtilities.mapper.createObjectNode();
|
ObjectNode columnModel = ParsingUtilities.mapper.createObjectNode();
|
||||||
columnModel.put("name", c.getName());
|
columnModel.put("name", c.getName());
|
||||||
if(type != null) {
|
if(type != null) {
|
||||||
@ -520,7 +501,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
columnModel.put("type", type);
|
columnModel.put("type", type);
|
||||||
}
|
}
|
||||||
if(size != null) {
|
if(size != null) {
|
||||||
// logger.info(" Size = " + size);
|
|
||||||
columnModel.put("size", size);
|
columnModel.put("size", size);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -541,7 +521,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
List<Column> cols = project.columnModel.columns;
|
List<Column> cols = project.columnModel.columns;
|
||||||
|
|
||||||
cols.forEach(c -> {
|
cols.forEach(c -> {
|
||||||
//logger.info("Column Name = " + c.getName());
|
|
||||||
ObjectNode columnModel = ParsingUtilities.mapper.createObjectNode();
|
ObjectNode columnModel = ParsingUtilities.mapper.createObjectNode();
|
||||||
columnModel.put("name", c.getName());
|
columnModel.put("name", c.getName());
|
||||||
if(type != null) {
|
if(type != null) {
|
||||||
@ -559,7 +538,6 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
columnModel.put("type", type);
|
columnModel.put("type", type);
|
||||||
}
|
}
|
||||||
if(size != null) {
|
if(size != null) {
|
||||||
// logger.info(" Size = " + size);
|
|
||||||
columnModel.put("size", size);
|
columnModel.put("size", size);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -579,6 +557,4 @@ public class SqlExporterTests extends RefineTest {
|
|||||||
return randomnum;
|
return randomnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -81,12 +81,12 @@ public class JsonImporterTests extends ImporterTest {
|
|||||||
public void setUp(Method method){
|
public void setUp(Method method){
|
||||||
super.setUp();
|
super.setUp();
|
||||||
SUT = new JsonImporter();
|
SUT = new JsonImporter();
|
||||||
logger.info("About to run test method: " + method.getName());
|
logger.debug("About to run test method: " + method.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterMethod
|
@AfterMethod
|
||||||
public void tearDown(ITestResult result) {
|
public void tearDown(ITestResult result) {
|
||||||
// logger.info("Finished test method: " + result.getMethod().getMethodName());
|
logger.debug("Finished test method: " + result.getMethod().getMethodName());
|
||||||
SUT = null;
|
SUT = null;
|
||||||
if (inputStream != null) {
|
if (inputStream != null) {
|
||||||
try {
|
try {
|
||||||
|
@ -215,7 +215,7 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
} catch (Exception e){
|
} catch (Exception e){
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
}
|
}
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 0, 6);
|
assertProjectCreated(project, 0, 6);
|
||||||
|
|
||||||
Assert.assertEquals(project.rows.get(0).cells.size(), 4);
|
Assert.assertEquals(project.rows.get(0).cells.size(), 4);
|
||||||
@ -239,7 +239,7 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
} catch (Exception e){
|
} catch (Exception e){
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
}
|
}
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 0, 6);
|
assertProjectCreated(project, 0, 6);
|
||||||
Assert.assertEquals(project.rows.get(0).cells.size(), 4);
|
Assert.assertEquals(project.rows.get(0).cells.size(), 4);
|
||||||
Assert.assertEquals(project.rows.get(5).cells.size(), 5);
|
Assert.assertEquals(project.rows.get(5).cells.size(), 5);
|
||||||
@ -269,7 +269,7 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
columnGroup.subgroups.put("e", subGroup);
|
columnGroup.subgroups.put("e", subGroup);
|
||||||
|
|
||||||
XmlImportUtilitiesStub.createColumnsFromImport(project, columnGroup);
|
XmlImportUtilitiesStub.createColumnsFromImport(project, columnGroup);
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 4, 0);
|
assertProjectCreated(project, 4, 0);
|
||||||
Assert.assertEquals(project.columnModel.columns.get(0).getName(), "hello");
|
Assert.assertEquals(project.columnModel.columns.get(0).getName(), "hello");
|
||||||
Assert.assertEquals(project.columnModel.columns.get(1).getName(), "world");
|
Assert.assertEquals(project.columnModel.columns.get(1).getName(), "world");
|
||||||
@ -296,7 +296,6 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
Assert.fail();
|
Assert.fail();
|
||||||
}
|
}
|
||||||
|
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 0, 6);
|
assertProjectCreated(project, 0, 6);
|
||||||
|
|
||||||
Assert.assertEquals(project.rows.get(0).cells.size(), 4);
|
Assert.assertEquals(project.rows.get(0).cells.size(), 4);
|
||||||
@ -314,7 +313,6 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
}
|
}
|
||||||
log(project);
|
|
||||||
Assert.assertNotNull(project.rows);
|
Assert.assertNotNull(project.rows);
|
||||||
Assert.assertEquals(project.rows.size(), 1);
|
Assert.assertEquals(project.rows.size(), 1);
|
||||||
Row row = project.rows.get(0);
|
Row row = project.rows.get(0);
|
||||||
@ -335,7 +333,7 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
}
|
}
|
||||||
log(project);
|
|
||||||
Assert.assertNotNull(project.rows);
|
Assert.assertNotNull(project.rows);
|
||||||
Assert.assertEquals(project.rows.size(), 2);
|
Assert.assertEquals(project.rows.size(), 2);
|
||||||
|
|
||||||
@ -360,7 +358,7 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
}
|
}
|
||||||
log(project);
|
|
||||||
Assert.assertNotNull(project.rows);
|
Assert.assertNotNull(project.rows);
|
||||||
Assert.assertEquals(project.rows.size(), 1);
|
Assert.assertEquals(project.rows.size(), 1);
|
||||||
Row row = project.rows.get(0);
|
Row row = project.rows.get(0);
|
||||||
@ -385,7 +383,6 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
}
|
}
|
||||||
log(project);
|
|
||||||
|
|
||||||
Assert.assertEquals(columnGroup.subgroups.size(), 1);
|
Assert.assertEquals(columnGroup.subgroups.size(), 1);
|
||||||
Assert.assertEquals(columnGroup.name, "");
|
Assert.assertEquals(columnGroup.name, "");
|
||||||
@ -413,7 +410,7 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
}
|
}
|
||||||
log(project);
|
|
||||||
Assert.assertNotNull(project.rows);
|
Assert.assertNotNull(project.rows);
|
||||||
Assert.assertEquals(project.rows.size(), 1);
|
Assert.assertEquals(project.rows.size(), 1);
|
||||||
Row row = project.rows.get(0);
|
Row row = project.rows.get(0);
|
||||||
@ -436,7 +433,7 @@ public class XmlImportUtilitiesTests extends RefineTest {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
}
|
}
|
||||||
log(project);
|
|
||||||
Assert.assertNotNull(project.rows);
|
Assert.assertNotNull(project.rows);
|
||||||
Assert.assertEquals(project.rows.size(), 1);
|
Assert.assertEquals(project.rows.size(), 1);
|
||||||
Row row = project.rows.get(0);
|
Row row = project.rows.get(0);
|
||||||
|
@ -97,7 +97,6 @@ public class XmlImporterTests extends ImporterTest {
|
|||||||
public void canParseSample(){
|
public void canParseSample(){
|
||||||
RunTest(getSample());
|
RunTest(getSample());
|
||||||
|
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 4, 6);
|
assertProjectCreated(project, 4, 6);
|
||||||
|
|
||||||
Row row = project.rows.get(0);
|
Row row = project.rows.get(0);
|
||||||
@ -110,7 +109,6 @@ public class XmlImporterTests extends ImporterTest {
|
|||||||
public void canParseDeeplyNestedSample(){
|
public void canParseDeeplyNestedSample(){
|
||||||
RunTest(getDeeplyNestedSample(), getNestedOptions(job, SUT));
|
RunTest(getDeeplyNestedSample(), getNestedOptions(job, SUT));
|
||||||
|
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 4, 6);
|
assertProjectCreated(project, 4, 6);
|
||||||
|
|
||||||
Row row = project.rows.get(0);
|
Row row = project.rows.get(0);
|
||||||
@ -123,7 +121,6 @@ public class XmlImporterTests extends ImporterTest {
|
|||||||
public void canParseSampleWithMixedElement(){
|
public void canParseSampleWithMixedElement(){
|
||||||
RunTest(getMixedElementSample(), getNestedOptions(job, SUT));
|
RunTest(getMixedElementSample(), getNestedOptions(job, SUT));
|
||||||
|
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 4, 6);
|
assertProjectCreated(project, 4, 6);
|
||||||
|
|
||||||
Row row = project.rows.get(0);
|
Row row = project.rows.get(0);
|
||||||
@ -147,7 +144,6 @@ public class XmlImporterTests extends ImporterTest {
|
|||||||
public void canParseSampleWithDuplicateNestedElements(){
|
public void canParseSampleWithDuplicateNestedElements(){
|
||||||
RunTest(getSampleWithDuplicateNestedElements());
|
RunTest(getSampleWithDuplicateNestedElements());
|
||||||
|
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 4, 12);
|
assertProjectCreated(project, 4, 12);
|
||||||
|
|
||||||
Row row = project.rows.get(0);
|
Row row = project.rows.get(0);
|
||||||
@ -163,7 +159,6 @@ public class XmlImporterTests extends ImporterTest {
|
|||||||
|
|
||||||
RunTest(getSampleWithLineBreak());
|
RunTest(getSampleWithLineBreak());
|
||||||
|
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 4, 6);
|
assertProjectCreated(project, 4, 6);
|
||||||
|
|
||||||
Row row = project.rows.get(3);
|
Row row = project.rows.get(3);
|
||||||
@ -177,7 +172,6 @@ public class XmlImporterTests extends ImporterTest {
|
|||||||
public void testElementsWithVaryingStructure(){
|
public void testElementsWithVaryingStructure(){
|
||||||
RunTest(getSampleWithVaryingStructure());
|
RunTest(getSampleWithVaryingStructure());
|
||||||
|
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 5, 6);
|
assertProjectCreated(project, 5, 6);
|
||||||
|
|
||||||
Assert.assertEquals(project.columnModel.getColumnByCellIndex(4).getName(), "book - genre");
|
Assert.assertEquals(project.columnModel.getColumnByCellIndex(4).getName(), "book - genre");
|
||||||
@ -194,7 +188,7 @@ public class XmlImporterTests extends ImporterTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testElementWithNestedTree(){
|
public void testElementWithNestedTree(){
|
||||||
RunTest(getSampleWithTreeStructure());
|
RunTest(getSampleWithTreeStructure());
|
||||||
log(project);
|
|
||||||
assertProjectCreated(project, 5, 6);
|
assertProjectCreated(project, 5, 6);
|
||||||
|
|
||||||
Assert.assertEquals(project.columnModel.columnGroups.size(),1);
|
Assert.assertEquals(project.columnModel.columnGroups.size(),1);
|
||||||
|
Loading…
Reference in New Issue
Block a user