예제 #1
0
 @BeforeClass
 public static void setUpBeforeClass() throws Exception {
   assertThat(
       "Copy core/src/main/conf/traffic_monitor.properties to core/src/test/conf and set 'traffic_monitor.bootstrap.hosts' to a real traffic monitor",
       Files.exists(Paths.get(TestBase.monitorPropertiesPath)),
       equalTo(true));
   context = TestBase.getContext();
 }
 @BeforeClass
 public static void setUpBeforeClass() throws Exception {
   try {
     context = TestBase.getContext();
     Logger root = Logger.getRootLogger();
     boolean rootIsConfigured = root.getAllAppenders().hasMoreElements();
     System.out.println("rootIsConfigured: " + rootIsConfigured);
   } catch (Exception e) {
     e.printStackTrace();
   }
 }