aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/java/org/openecomp/sdc/be/components/path/beans/FeatureToggleDaoMock.java
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src/test/java/org/openecomp/sdc/be/components/path/beans/FeatureToggleDaoMock.java')
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/path/beans/FeatureToggleDaoMock.java57
1 files changed, 57 insertions, 0 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/path/beans/FeatureToggleDaoMock.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/path/beans/FeatureToggleDaoMock.java
new file mode 100644
index 0000000000..a7f7a7671c
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/path/beans/FeatureToggleDaoMock.java
@@ -0,0 +1,57 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * 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.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.components.path.beans;
+
+import org.openecomp.sdc.be.dao.cassandra.CassandraClient;
+import org.openecomp.sdc.be.dao.cassandra.CassandraOperationStatus;
+import org.openecomp.sdc.be.dao.cassandra.FeatureToggleDao;
+import org.openecomp.sdc.be.resources.data.togglz.FeatureToggleEvent;
+import org.springframework.stereotype.Component;
+
+import javax.annotation.PostConstruct;
+import java.util.List;
+
+@Component("feature_toggle_dao")
+public class FeatureToggleDaoMock extends FeatureToggleDao {
+
+ public FeatureToggleDaoMock(CassandraClient cassandraClient) {
+ super(cassandraClient);
+ }
+
+ @PostConstruct
+ public void init() {}
+
+ public CassandraOperationStatus save(FeatureToggleEvent featureToggleEvent) {
+ return null;
+ }
+
+ public FeatureToggleEvent get(String feature_name) {
+ return null;
+ }
+
+ public CassandraOperationStatus delete(String feature_name) {
+ return null;
+ }
+
+ public List<FeatureToggleEvent> getAllFeatures() {
+ return null;
+ }
+}