Fixup Augmentable and Identifiable methods changing
[netconf.git] / netconf / sal-netconf-connector / src / test / java / org / opendaylight / netconf / sal / connect / netconf / util / NetconfSalKeystoreServiceTest.java
index 2b98e5050cfd7d1c14509f8b0bd2d224ebb1ae9d..1d85790b6befbf014fbb5a9e103f92811b5e2a0f 100644 (file)
@@ -114,7 +114,7 @@ public class NetconfSalKeystoreServiceTest {
             }
 
             final PrivateKey privateKey = new PrivateKeyBuilder()
-                    .setKey(new PrivateKeyKey(keyName))
+                    .withKey(new PrivateKeyKey(keyName))
                     .setName(keyName)
                     .setData(keyData)
                     .setCertificateChain(certChain)
@@ -139,7 +139,7 @@ public class NetconfSalKeystoreServiceTest {
             final String certData = element.getElementsByTagName(XML_ELEMENT_CERT).item(0).getTextContent();
 
             final TrustedCertificate certificate = new TrustedCertificateBuilder()
-                    .setKey(new TrustedCertificateKey(certName))
+                    .withKey(new TrustedCertificateKey(certName))
                     .setName(certName)
                     .setCertificate(certData)
                     .build();