From 729500a159c61a697c528e0c86abd132f4380b0d Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 12 Jul 2018 16:10:53 +0200 Subject: some more updates --- .../core/impl/idp/module/test/TestRequestImpl.java | 56 ++++++++++++++++------ 1 file changed, 42 insertions(+), 14 deletions(-) (limited to 'eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java') diff --git a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java index 92b2a709..a3812816 100644 --- a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java +++ b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java @@ -1,7 +1,32 @@ +/******************************************************************************* + * Copyright 2017 Graz University of Technology + * EAAF-Core Components has been developed in a cooperation between EGIZ, + * A-SIT+, A-SIT, and Graz University of Technology. + * + * Licensed under the EUPL, Version 1.2 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * https://joinup.ec.europa.eu/news/understanding-eupl-v12 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + * + * This product combines work with different licenses. See the "NOTICE" text + * file for details on the various modules and licenses. + * The "NOTICE" text file is part of the distribution. Any derivative works + * that you distribute must include a readable copy of the "NOTICE" text file. + *******************************************************************************/ +/******************************************************************************* + *******************************************************************************/ /******************************************************************************* *******************************************************************************/ package at.gv.egiz.eaaf.core.impl.idp.module.test; +import java.util.HashMap; import java.util.Map; import at.gv.egiz.eaaf.core.api.IRequest; @@ -15,6 +40,8 @@ import at.gv.egiz.eaaf.core.exceptions.EAAFStorageException; public class TestRequestImpl implements IRequest { private String processInstanceID = null; + private ISPConfiguration spConfig = null; + private Map storage = new HashMap(); /* (non-Javadoc) * @see at.gv.egovernment.moa.id.moduls.IRequest#requestedModule() @@ -57,8 +84,7 @@ public class TestRequestImpl implements IRequest { */ @Override public Object getGenericData(String key) { - // TODO Auto-generated method stub - return null; + return storage.get(key); } /* (non-Javadoc) @@ -66,8 +92,7 @@ public class TestRequestImpl implements IRequest { */ @Override public T getGenericData(String key, Class clazz) { - // TODO Auto-generated method stub - return null; + return (T)storage.get(key); } @@ -194,14 +219,13 @@ public class TestRequestImpl implements IRequest { @Override public void setGenericDataToSession(Map map) throws EAAFStorageException { - // TODO Auto-generated method stub + storage.putAll(map); } @Override public Map genericFullDataStorage() { - // TODO Auto-generated method stub - return null; + return storage; } @Override @@ -211,13 +235,13 @@ public class TestRequestImpl implements IRequest { } @Override - public String getSSOSessionIdentifier() { + public String getInternalSSOSessionIdentifier() { // TODO Auto-generated method stub return null; } @Override - public void setSSOSessionIdentifier(String internalSSOSessionId) { + public void setInternalSSOSessionIdentifier(String internalSSOSessionId) { // TODO Auto-generated method stub } @@ -236,21 +260,25 @@ public class TestRequestImpl implements IRequest { @Override public ISPConfiguration getServiceProviderConfiguration() { - // TODO Auto-generated method stub - return null; + return spConfig; + } @Override public T getServiceProviderConfiguration(Class decorator) { - // TODO Auto-generated method stub - return null; + return (T)spConfig; } @Override public void setGenericDataToSession(String key, Object object) throws EAAFStorageException { - // TODO Auto-generated method stub + storage.put(key, object); } + + public void setSpConfig(ISPConfiguration spConfig) { + this.spConfig = spConfig; + } + -- cgit v1.2.3