GuidedDTDRLPersistence { boolean validCell(String c, DataType.DataTypes dataType) { if (dataType.equals(DataType.DataTypes.STRING)) { return (c != null) && (!c.trim().equals("")); } return (c != null) && (!c.trim().equals("")); }  static GuidedDTDRLPersistence getInstance(); String marshal(final GuidedDecisionTable52 originalDTable);  }
@Test public void testConditionAndActionCellValue() { GuidedDTDRLPersistence p = new GuidedDTDRLPersistence(); assertFalse(p.validCell(null, DataType.DataTypes.NUMERIC)); assertFalse(p.validCell("", DataType.DataTypes.NUMERIC)); assertFalse(p.validCell(" ", DataType.DataTypes.NUMERIC)); assertFalse(p.validCell(null, DataType.DataTypes.STRING)); assertFalse(p.validCell("", DataType.DataTypes.STRING)); assertFalse(p.validCell(" ", DataType.DataTypes.STRING)); }