/** TearDown App. */ @AfterClass public static void tearDownApp() { if (null != app) { try { app.tearDown(); } catch (Exception e) { fail( "Tearing down sample app should not run any exception. Exception type: " + e.getClass().getName() + ": " + e.getMessage()); } } }
/** Run App. */ @BeforeClass public static void runApp() { port = WebAppTest.getRandomPort(); app = new SampleNeo4jApp(port); try { app.run(); } catch (Exception e) { fail( "Running sample app should not run any exception. Exception type: " + e.getClass().getName() + ": " + e.getMessage()); } }