@BeforeClass public static void init() { if (root != null) { return; } System.out.println("--- Initializing ---"); root = new FormatSet("fooTab"); Format fmt = new Format("expDesign"); Section section = new Section("idf"); section.setAttr("header", "IDF"); Field fld = new Field("Experiment Name"); section.addField(fld); fld = new Field("Factor Type REF"); section.addField(fld); fmt.addSection((section)); root.addFormat(fmt); // end }
@Test public void testBuilding() { System.out.println("--- Building a test schema --- \n" + root.toString(true)); assertNotNull("Sigh! Initialization wasn't unable to create a test schema", root); }