directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: DIRKRB-488 Fix compare issue in TestPersonnelRecord.
Date Mon, 07 Dec 2015 07:10:49 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master 870070baf -> 013797a30


DIRKRB-488 Fix compare issue in TestPersonnelRecord.


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

Branch: refs/heads/master
Commit: 013797a30d8b6fafeacbbae7dd6915e133a147e9
Parents: 870070b
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Mon Dec 7 15:17:15 2015 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Mon Dec 7 15:17:15 2015 +0800

----------------------------------------------------------------------
 .../apache/kerby/asn1/TestPersonnelRecord.java  | 64 ++++++++++----------
 1 file changed, 32 insertions(+), 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/013797a3/kerby-asn1/src/test/java/org/apache/kerby/asn1/TestPersonnelRecord.java
----------------------------------------------------------------------
diff --git a/kerby-asn1/src/test/java/org/apache/kerby/asn1/TestPersonnelRecord.java b/kerby-asn1/src/test/java/org/apache/kerby/asn1/TestPersonnelRecord.java
index 88349e2..2afe998 100644
--- a/kerby-asn1/src/test/java/org/apache/kerby/asn1/TestPersonnelRecord.java
+++ b/kerby-asn1/src/test/java/org/apache/kerby/asn1/TestPersonnelRecord.java
@@ -81,41 +81,41 @@ public class TestPersonnelRecord {
         decoded.decode(data);
         Asn1.dump(decoded);
 
-        assertThat(expected.getName().getGivenName())
-                .isEqualTo(decoded.getName().getGivenName());
-        assertThat(expected.getName().getInitial())
-                .isEqualTo(decoded.getName().getInitial());
-        assertThat(expected.getName().getFamilyName())
-                .isEqualTo(decoded.getName().getFamilyName());
-        assertThat(expected.getDateOfHire().getValue().getValue())
-                .isEqualTo(decoded.getDateOfHire().getValue().getValue());
+        assertThat(decoded.getName().getGivenName())
+                .isEqualTo(expected.getName().getGivenName());
+        assertThat(decoded.getName().getInitial())
+                .isEqualTo(expected.getName().getInitial());
+        assertThat(decoded.getName().getFamilyName())
+                .isEqualTo(expected.getName().getFamilyName());
+        assertThat(decoded.getDateOfHire().getValue().getValue())
+                .isEqualTo(expected.getDateOfHire().getValue().getValue());
         assertThat(decoded.getTitle())
                 .isEqualTo(expected.getTitle());
-        assertThat(expected.getEmployeeNumber().getValue().getValue())
-                .isEqualTo(decoded.getEmployeeNumber().getValue().getValue());
-        assertThat(expected.getNameOfSpouse().getGivenName())
-                .isEqualTo(decoded.getNameOfSpouse().getGivenName());
-        assertThat(expected.getNameOfSpouse().getInitial())
-                .isEqualTo(decoded.getNameOfSpouse().getInitial());
-        assertThat(expected.getNameOfSpouse().getFamilyName())
-                .isEqualTo(decoded.getNameOfSpouse().getFamilyName());
+        assertThat(decoded.getEmployeeNumber().getValue().getValue())
+                .isEqualTo(expected.getEmployeeNumber().getValue().getValue());
+        assertThat(decoded.getNameOfSpouse().getGivenName())
+                .isEqualTo(expected.getNameOfSpouse().getGivenName());
+        assertThat(decoded.getNameOfSpouse().getInitial())
+                .isEqualTo(expected.getNameOfSpouse().getInitial());
+        assertThat(decoded.getNameOfSpouse().getFamilyName())
+                .isEqualTo(expected.getNameOfSpouse().getFamilyName());
         assertThat(decoded.getChildren().getElements().size())
             .isEqualTo(expected.getChildren().getElements().size());
-        assertThat(expected.getChildren().getElements().get(0).getName().getGivenName())
-                .isEqualTo(decoded.getChildren().getElements().get(0).getName().getGivenName());
-        assertThat(expected.getChildren().getElements().get(0).getName().getInitial())
-                .isEqualTo(decoded.getChildren().getElements().get(0).getName().getInitial());
-        assertThat(expected.getChildren().getElements().get(0).getName().getFamilyName())
-                .isEqualTo(decoded.getChildren().getElements().get(0).getName().getFamilyName());
-        assertThat(expected.getChildren().getElements().get(0).getDateOfBirth().getValue().getValue())
-                .isEqualTo(decoded.getChildren().getElements().get(0).getDateOfBirth().getValue().getValue());
-        assertThat(expected.getChildren().getElements().get(1).getName().getGivenName())
-                .isEqualTo(decoded.getChildren().getElements().get(1).getName().getGivenName());
-        assertThat(expected.getChildren().getElements().get(1).getName().getInitial())
-                .isEqualTo(decoded.getChildren().getElements().get(1).getName().getInitial());
-        assertThat(expected.getChildren().getElements().get(1).getName().getFamilyName())
-                .isEqualTo(decoded.getChildren().getElements().get(1).getName().getFamilyName());
-        assertThat(expected.getChildren().getElements().get(1).getDateOfBirth().getValue().getValue())
-                .isEqualTo(decoded.getChildren().getElements().get(1).getDateOfBirth().getValue().getValue());
+        assertThat(decoded.getChildren().getElements().get(0).getName().getGivenName())
+                .isEqualTo(expected.getChildren().getElements().get(0).getName().getGivenName());
+        assertThat(decoded.getChildren().getElements().get(0).getName().getInitial())
+                .isEqualTo(expected.getChildren().getElements().get(0).getName().getInitial());
+        assertThat(decoded.getChildren().getElements().get(0).getName().getFamilyName())
+                .isEqualTo(expected.getChildren().getElements().get(0).getName().getFamilyName());
+        assertThat(decoded.getChildren().getElements().get(0).getDateOfBirth().getValue().getValue())
+                .isEqualTo(expected.getChildren().getElements().get(0).getDateOfBirth().getValue().getValue());
+        assertThat(decoded.getChildren().getElements().get(1).getName().getGivenName())
+                .isEqualTo(expected.getChildren().getElements().get(1).getName().getGivenName());
+        assertThat(decoded.getChildren().getElements().get(1).getName().getInitial())
+                .isEqualTo(expected.getChildren().getElements().get(1).getName().getInitial());
+        assertThat(decoded.getChildren().getElements().get(1).getName().getFamilyName())
+                .isEqualTo(expected.getChildren().getElements().get(1).getName().getFamilyName());
+        assertThat(decoded.getChildren().getElements().get(1).getDateOfBirth().getValue().getValue())
+                .isEqualTo(expected.getChildren().getElements().get(1).getDateOfBirth().getValue().getValue());
     }
 }


Mime
View raw message