2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2018 Ericsson. All rights reserved.
4 * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
5 * ================================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 * SPDX-License-Identifier: Apache-2.0
19 * ============LICENSE_END=========================================================
22 package org.onap.policy.apex.core.engine.executor.context;
24 import java.util.Collection;
27 import lombok.AllArgsConstructor;
28 import org.apache.commons.lang3.NotImplementedException;
29 import org.onap.policy.apex.context.ContextAlbum;
30 import org.onap.policy.apex.context.ContextException;
31 import org.onap.policy.apex.context.SchemaHelper;
32 import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;
33 import org.onap.policy.apex.model.basicmodel.concepts.AxConcept;
34 import org.onap.policy.apex.model.contextmodel.concepts.AxContextAlbum;
37 * Dummy context album for testing.
40 public class DummyContextAlbum implements ContextAlbum {
41 private final AxArtifactKey key;
48 throw new NotImplementedException("Not implemented on dummy class");
55 public boolean containsKey(Object key) {
56 throw new NotImplementedException("Not implemented on dummy class");
63 public boolean containsValue(Object value) {
64 throw new NotImplementedException("Not implemented on dummy class");
71 public Set<Entry<String, Object>> entrySet() {
72 throw new NotImplementedException("Not implemented on dummy class");
79 public Object get(Object key) {
80 throw new NotImplementedException("Not implemented on dummy class");
87 public boolean isEmpty() {
88 throw new NotImplementedException("Not implemented on dummy class");
95 public Set<String> keySet() {
96 throw new NotImplementedException("Not implemented on dummy class");
103 public Object put(String key, Object value) {
104 throw new NotImplementedException("Not implemented on dummy class");
111 public void putAll(Map<? extends String, ? extends Object> map) {
112 throw new NotImplementedException("Not implemented on dummy class");
119 public Object remove(Object key) {
120 throw new NotImplementedException("Not implemented on dummy class");
128 throw new NotImplementedException("Not implemented on dummy class");
135 public Collection<Object> values() {
136 throw new NotImplementedException("Not implemented on dummy class");
143 public AxArtifactKey getKey() {
151 public String getName() {
152 throw new NotImplementedException("Not implemented on dummy class");
159 public AxContextAlbum getAlbumDefinition() {
160 throw new NotImplementedException("Not implemented on dummy class");
167 public SchemaHelper getSchemaHelper() {
168 throw new NotImplementedException("Not implemented on dummy class");
175 public void lockForReading(String key) throws ContextException {
176 throw new NotImplementedException("Not implemented on dummy class");
183 public void lockForWriting(String key) throws ContextException {
184 throw new NotImplementedException("Not implemented on dummy class");
191 public void unlockForReading(String key) throws ContextException {
192 throw new NotImplementedException("Not implemented on dummy class");
199 public void unlockForWriting(String key) throws ContextException {
200 throw new NotImplementedException("Not implemented on dummy class");
207 public AxConcept[] getUserArtifactStack() {
208 throw new NotImplementedException("Not implemented on dummy class");
215 public void setUserArtifactStack(AxConcept[] userArtifactStack) {
223 public void flush() throws ContextException {
224 throw new NotImplementedException("Not implemented on dummy class");