public void setUp() { anchorContainer = new TrustAnchorContainer(); fixture = new IdentityManagementFixture(); // Create a directory and prepares two certificates. certificateDirectoryPath = new FileInfo(System.IO.Path.Combine(net.named_data.jndn.tests.integration_tests.IntegrationTestsCommon.getPolicyConfigDirectory().FullName, "test-cert-dir")); System.IO.Directory.CreateDirectory(certificateDirectoryPath.FullName); certificatePath1 = new FileInfo(System.IO.Path.Combine(certificateDirectoryPath.FullName, "trust-anchor-1.cert")); certificatePath2 = new FileInfo(System.IO.Path.Combine(certificateDirectoryPath.FullName, "trust-anchor-2.cert")); identity1 = fixture.addIdentity(new Name("/TestAnchorContainer/First")); certificate1 = identity1.getDefaultKey().getDefaultCertificate(); fixture.saveCertificateToFile(certificate1, certificatePath1.FullName); identity2 = fixture .addIdentity(new Name("/TestAnchorContainer/Second")); certificate2 = identity2.getDefaultKey().getDefaultCertificate(); fixture.saveCertificateToFile(certificate2, certificatePath2.FullName); }
public void setUp() { fixture_ = new IdentityManagementFixture(); }