From bce81049aba8eca5afaca2949ba8be3db89a2825 Mon Sep 17 00:00:00 2001
From: Matthias Piepkorn <mpiepk@gmail.com>
Date: Sun, 05 Feb 2017 10:54:12 +0000
Subject: [PATCH] Improve ServiceResponseTest and fix XML response attribute order

---
 src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java b/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java
index 30a37c6..3ef7754 100644
--- a/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java
+++ b/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java
@@ -10,12 +10,12 @@
 @XmlAccessorType(XmlAccessType.FIELD)
 public class CASServiceResponseAuthenticationSuccess {
     private String user;
+    @XmlJavaTypeAdapter(AttributesMapAdapter.class)
+    private Map<String, Object> attributes;
     private String proxyGrantingTicket;
     @XmlElementWrapper
     @XmlElement(name="proxy")
     private List<String> proxies;
-    @XmlJavaTypeAdapter(AttributesMapAdapter.class)
-    private Map<String, Object> attributes;
 
     public String getUser() {
         return this.user;
@@ -23,6 +23,14 @@
 
     public void setUser(final String user) {
         this.user = user;
+    }
+
+    public Map<String, Object> getAttributes() {
+        return this.attributes;
+    }
+
+    public void setAttributes(final Map<String, Object> attributes) {
+        this.attributes = attributes;
     }
 
     public String getProxyGrantingTicket() {
@@ -39,13 +47,5 @@
 
     public void setProxies(final List<String> proxies) {
         this.proxies = proxies;
-    }
-
-    public Map<String, Object> getAttributes() {
-        return this.attributes;
-    }
-
-    public void setAttributes(final Map<String, Object> attributes) {
-        this.attributes = attributes;
     }
 }

--
Gitblit v1.9.1