Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @BeforeClass public static void setUp() throws java.io.IOException, java.security.GeneralSecurityException, org.bouncycastle.operator.OperatorCreationException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public static void SetUp()
        {
            _certFactory = new PkiUtils();
            _keyFile     = File.createTempFile("key", "pem");
            _certFile    = File.createTempFile("key", "pem");
            _keyFile.deleteOnExit();
            _certFile.deleteOnExit();

            // make sure files are not there
            _keyFile.delete();
            _certFile.delete();

            _certFactory.createSelfSignedCertificate(_certFile, _keyFile, "my.domain");

            _util = new TransportTestUtil(new Neo4jPackV1());
        }