directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject [4/5] directory-kerby git commit: added a convenient method to call all the testXXX() methods
Date Thu, 02 Jul 2015 08:15:44 GMT
added a convenient method to call all the testXXX() methods


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/c6e13097
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/c6e13097
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/c6e13097

Branch: refs/heads/master
Commit: c6e130975d5cdb631f4cb13e6dc4dbfec83071d2
Parents: 4464d11
Author: Kiran Ayyagari <kayyagari@apache.org>
Authored: Thu Jul 2 16:13:32 2015 +0800
Committer: Kiran Ayyagari <kayyagari@apache.org>
Committed: Thu Jul 2 16:13:32 2015 +0800

----------------------------------------------------------------------
 .../kerberos/kerb/identity/backend/BackendTest.java     | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/c6e13097/kerby-kerb/kerb-identity-test/src/test/java/org/apache/kerby/kerberos/kerb/identity/backend/BackendTest.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-identity-test/src/test/java/org/apache/kerby/kerberos/kerb/identity/backend/BackendTest.java
b/kerby-kerb/kerb-identity-test/src/test/java/org/apache/kerby/kerberos/kerb/identity/backend/BackendTest.java
index 8960060..8361eac 100644
--- a/kerby-kerb/kerb-identity-test/src/test/java/org/apache/kerby/kerberos/kerb/identity/backend/BackendTest.java
+++ b/kerby-kerb/kerb-identity-test/src/test/java/org/apache/kerby/kerberos/kerb/identity/backend/BackendTest.java
@@ -44,6 +44,18 @@ public abstract class BackendTest {
             EncryptionType.DES3_CBC_SHA1_KD
     };
 
+    /**
+     * A convenient method to run all tests on the given backend 
+     * @param backend an instance of the backend to be tested
+     */
+    public void testAll(IdentityBackend backend) {
+        testStore(backend);
+        testGet(backend);
+        testUpdate(backend);
+        testDelete(backend);
+        testGetIdentities(backend);
+    }
+    
     protected void testGet(IdentityBackend backend) {
         KrbIdentity kid = createOneIdentity(TEST_PRINCIPAL);
         backend.addIdentity(kid);


Mime
View raw message