Fixup Augmentable and Identifiable methods changing
[netconf.git] / netconf / sal-netconf-connector / src / test / java / org / opendaylight / netconf / sal / connect / netconf / sal / NetconfKeystoreAdapterTest.java
index 727614f6b56adf33fdee75d47db2545166164643..a31bd083aaf09f843d5d36acbf3067adfb2e814d 100644 (file)
@@ -166,7 +166,7 @@ public class NetconfKeystoreAdapterTest {
             }
 
             final PrivateKey privateKey = new PrivateKeyBuilder()
-                    .setKey(new PrivateKeyKey(keyName))
+                    .withKey(new PrivateKeyKey(keyName))
                     .setName(keyName)
                     .setData(keyData)
                     .setCertificateChain(certChain)
@@ -191,7 +191,7 @@ public class NetconfKeystoreAdapterTest {
             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();