Exemplo n.º 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;
 }
Exemplo n.º 2
0
 @Test
 public void isMonitorInstalled() {
   assertThat(monitor, notNullValue());
   monitor.getCount(); // throw exception is monitor not present
 }