diff ui/tests/cinstprocesstest.cpp @ 249:6a7eb102716d

Remove code duplication by unifying the certificatelist. You should now check for isInstallCert to determine wether this certificate should be installed or removed. Leaving the getInstallCertificates and getRemoveCertificates in place for compatibilty would have been easier to keep the tests stable.
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 31 Mar 2014 08:06:17 +0000
parents 37c9653b8755
children d95fd88f6616
line wrap: on
line diff
--- a/ui/tests/cinstprocesstest.cpp	Mon Mar 31 08:03:20 2014 +0000
+++ b/ui/tests/cinstprocesstest.cpp	Mon Mar 31 08:06:17 2014 +0000
@@ -41,7 +41,7 @@
     installerProcess->write(validList.rawData().toLatin1());
     installerProcess->write("-----END CERTIFICATE LIST-----\r\n");
 
-    foreach (const Certificate &cert, validList.getInstallCertificates()) {
+    foreach (const Certificate &cert, validList.getCertificates()) {
         installerProcess->write(cert.base64Line().toLatin1());
         installerProcess->write("\r\n");
     }
@@ -62,7 +62,7 @@
     installerProcess->write("-----BEGIN CERTIFICATE LIST-----\r\n");
     installerProcess->write("-----END CERTIFICATE LIST-----\r\n");
 
-    foreach (const Certificate &cert, validList.getInstallCertificates()) {
+    foreach (const Certificate &cert, validList.getCertificates()) {
         installerProcess->write(cert.base64Line().toLatin1());
         installerProcess->write("\r\n");
     }

http://wald.intevation.org/projects/trustbridge/