/** * Create a new site entry with no faulty values. Site object will be created step by step by * calling the appropriate methods. */ private static void runTest_Stepped() { Number newSiteId = -1; Testing.so("All legal site creation in single steps", Format.HEADER); Testing.so("These tests should run without any errors.", Format.HEADERSUB); Testing.so("Creating a new Site object", Format.STEP); try { SiteTest.site = new Site(); } catch (Exception e) { Testing.err(e); } // run tests SiteTest.testLanguage(); SiteTest.testCountryCode(); SiteTest.testURL(); SiteTest.testCategory(); SiteTest.testRootFile(); SiteTest.testTitle(); SiteTest.testTimestamp(); SiteTest.testStorage(); Testing.so("Writing data..", Format.STEPFINAL); try { newSiteId = SiteTest.site.write(); } catch (Exception e) { Testing.err(e); } Testing.so("All legal site creation in single steps: final check", Format.HEADER); SiteTest.checkTest(newSiteId); }