]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - security/runtime/org.argeo.security.core/src/test/java/org/argeo/security/json/JsonServerMapperTest.java
Add license headers
[lgpl/argeo-commons.git] / security / runtime / org.argeo.security.core / src / test / java / org / argeo / security / json / JsonServerMapperTest.java
index f841aeaf1826ea7805685b888dace028c3d722eb..e4ec82a7ea2297c265461685f1089d011d0d1599 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.argeo.security.json;
 
 import java.io.InputStream;
@@ -8,7 +24,7 @@ import junit.framework.TestCase;
 
 import org.apache.commons.io.IOUtils;
 import org.argeo.security.ArgeoUser;
-import org.argeo.security.BasicArgeoUser;
+import org.argeo.security.SimpleArgeoUser;
 import org.argeo.security.UserNature;
 import org.argeo.server.json.GenericJsonDeserializer;
 import org.argeo.server.json.JsonObjectFactoryImpl;
@@ -36,7 +52,7 @@ public class JsonServerMapperTest extends TestCase {
        @SuppressWarnings("unchecked")
        public static JsonServerMapper createJsonServerMapper() throws Exception {
                JsonServerMapper mapper = new JsonServerMapper();
-               mapper.setTargetClass(BasicArgeoUser.class);
+               mapper.setTargetClass(SimpleArgeoUser.class);
                GenericJsonDeserializer jsonDeserializer = new GenericJsonDeserializer();
                jsonDeserializer.getObjectFactories().add(new JsonObjectFactoryImpl());
                mapper.getDeserializers().put(UserNature.class, jsonDeserializer);