Ejemplo n.º 1
0
 /** Tests that sealing mutliple times does not cause trouble. */
 @Test
 public final void multiSealing() {
   sealable.seal();
   sealable.seal();
   assertTrue("A Sealable should be sealed after seal().", sealable.isSealed());
 }
Ejemplo n.º 2
0
 /** Tests that the instance is unsealed in the beginning. */
 @Test
 public final void initiallyUnsealed() {
   assertFalse("A Sealable should not be sealed after creation.", sealable.isSealed());
 }