FileDocCategorySizeDatePackage
TestDocumentEncryptionAtom.javaAPI DocApache Poi 3.0.14188Sun Mar 11 12:59:32 GMT 2007org.apache.poi.hslf.record

TestDocumentEncryptionAtom

public class TestDocumentEncryptionAtom extends TestCase
Tests that DocumentEncryptionAtom works properly.
author
Nick Burch (nick at torchbox dot com)

Fields Summary
private byte[]
data_a
private byte[]
data_b
Constructors Summary
Methods Summary
public voidtestEncryptionTypeName()

		DocumentEncryptionAtom dea1 = new DocumentEncryptionAtom(data_a, 0, data_a.length);
		assertEquals("Microsoft Base Cryptographic Provider v1.0", dea1.getEncryptionProviderName());
		
		DocumentEncryptionAtom dea2 = new DocumentEncryptionAtom(data_b, 0, data_b.length);
		assertEquals("Microsoft Base Cryptographic Provider v1.0", dea2.getEncryptionProviderName());
    
public voidtestRecordType()


         
		DocumentEncryptionAtom dea1 = new DocumentEncryptionAtom(data_a, 0, data_a.length);
		assertEquals(12052l, dea1.getRecordType());
		
		DocumentEncryptionAtom dea2 = new DocumentEncryptionAtom(data_b, 0, data_b.length);
		assertEquals(12052l, dea2.getRecordType());
		
		System.out.println(data_a.length);
		System.out.println(data_b.length);