Exemplo n.º 1
0
 @Test
 public void shouldReportThatPublicationHasBeenConnectedYet() {
   assertTrue(publication.hasBeenConnected());
 }
Exemplo n.º 2
0
 @Test
 public void shouldReportThatPublicationHasNotBeenConnectedYet() {
   when(publicationLimit.getVolatile()).thenReturn(0L);
   assertFalse(publication.hasBeenConnected());
 }