예제 #1
0
 @Test
 public void isSessionOpened() {
   int count = monitor.getCount();
   assertThat(count, is(1));
   String firstInfo = monitor.getInfos()[0];
   assertThat(firstInfo.length(), greaterThan(0));
   return;
 }
예제 #2
0
 @Test
 public void isMonitorInstalled() {
   assertThat(monitor, notNullValue());
   monitor.getCount(); // throw exception is monitor not present
 }