/*
- * ================================================================================
+ * ===========LICENSE_START=====================================================================
* Copyright (c) 2020 ChinaMobile. All rights reserved.
+ * Copyright (c) 2022 Wipro Limited Intellectual Property. All rights reserved.
* ================================================================================
- * Copyright Copyright (c) 2019 IBM
+ * Copyright (c) 2019 IBM
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
package org.onap.dcae.analytics.tca.web.validation;
+import java.util.List;
+
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
Errors errors = Mockito.mock(Errors.class);
TcaPolicyWrapper tcaPolicyWrapper = new TcaPolicyWrapper(properties);
tcaPolicyWrapper.getConfigSource();
- TcaPolicy tcaPolicy = tcaPolicyWrapper.getTcaPolicy();
+ List<TcaPolicy> tcaPolicy = tcaPolicyWrapper.getTcaPolicy();
validate.validate(tcaPolicy, errors);
validate.apply(tcaPolicy);
Assertions.assertEquals("version-0", tcaPolicyWrapper.getPolicyVersion());