public static void main(String[] args) {
DataNodeSmokeTest test = new DataNodeSmokeTest();
test.testConstruct();
test.testAccessors();
test.printSummary();
}
private void testConstruct() { header("Starting -- testConstruct"); //Declare DataNode<String> node; String realData = "Asha"; //Construct node = new DataNode<>(realData); //Test assertNotEquals(null, node); }
private void testAccessors() { header("Starting -- testAccessors"); //Declare DataNode<Employee> node; Employee emp = new Employee(1, "Kofi Kingston"); //Construct node = new DataNode<>(emp); //Test assertNotEquals(null, node.getData()); }
package datanode.test; import datanode.model.DataNode; import testutil.AbstractTest; import testutil.Employee; public class DataNodeSmokeTest extends AbstractTest { //-------------------------- //Main (Entry Point) public static void main(String[] args) { DataNodeSmokeTest test = new DataNodeSmokeTest(); test.testConstruct(); test.testAccessors(); test.printSummary(); } //-------------------------- //Tests private void testConstruct() { header("Starting -- testConstruct"); //Declare DataNode<String> node; String realData = "Asha"; //Construct node = new DataNode<>(realData); //Test assertNotEquals(null, node); } private void testAccessors() { header("Starting -- testAccessors"); //Declare DataNode<Employee> node; Employee emp = new Employee(1, "Kofi Kingston"); //Construct node = new DataNode<>(emp); //Test assertNotEquals(null, node.getData()); } }