Lucio Lelii 2016-09-06 08:16:25 +00:00
parent c8f6804dc8
commit 8e7583391a
2 changed files with 2 additions and 3 deletions

View File

@ -20,7 +20,7 @@
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-scope</artifactId>
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>

View File

@ -12,7 +12,6 @@ import javax.xml.bind.JAXBException;
import org.gcube.common.authorization.library.AuthorizationEntry;
import org.gcube.common.authorization.library.policies.Policy;
import org.gcube.common.authorization.library.provider.UserInfo;
import org.gcube.common.scope.impl.DefaultServiceMap;
import org.junit.Assert;
import org.junit.Test;
@ -29,7 +28,7 @@ public class AuthorizationEntryBinder {
AuthorizationEntry ae1 = new AuthorizationEntry(new UserInfo("lucio.lelii", new ArrayList<String>()), "scope", new ArrayList<Policy>(), "TOKEN");
Map<String, String> services = new HashMap<String, String>();
services.put("service", "endpoint");
ae1.setMap(new DefaultServiceMap("scope","versione", services ));
//ae1.setMap(new DefaultServiceMap("scope","versione", services ));
context.createMarshaller().marshal(ae1, sw);
System.out.println(sw.toString());
AuthorizationEntry ae2 = (AuthorizationEntry)context.createUnmarshaller().unmarshal(new StringReader(sw.toString()));