Exemplo n.º 1
0
 @Test
 public void testGetDocumentLengthReturnsSize() throws Exception {
   assertEquals(16, OBZVaultFile.getEncryptedDocLength(_fileExisting));
 }
Exemplo n.º 2
0
 @Test
 public void testGetDocumentLengthReturnsZeroWhenBadFile() throws Exception {
   assertEquals(0, OBZVaultFile.getEncryptedDocLength(new File("wazongas!!!")));
 }
Exemplo n.º 3
0
 @Test
 public void testIsOBZVaultFileReturnsFalseWhenTextFile() throws Exception {
   assertFalse(OBZVaultFile.isOBZVaultFile(_fileText));
 }
Exemplo n.º 4
0
 @Test
 public void testIsOBZVaultFileReturnsFalseWhenBadFile() throws Exception {
   assertFalse(OBZVaultFile.isOBZVaultFile(new File("wazongas!")));
 }
Exemplo n.º 5
0
 @Test
 public void testIsOBZVaultFileReturnsTrueWhenOBZVaultFile() throws Exception {
   assertTrue(OBZVaultFile.isOBZVaultFile(_fileExisting));
 }