Skip to content
Snippets Groups Projects
Commit 016c7212 authored by Aalekh Jain's avatar Aalekh Jain
Browse files

Created test class for LegalTagRepositoryImpl

Created `LegalTagRepositoryImplTest.java`
parent 0169c1d8
No related branches found
No related tags found
1 merge request!61Improve code coverage
Pipeline #9578 failed
// Copyright © Microsoft Corporation
//
// 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.
package org.opengroup.osdu.legal.azure.tags.dataaccess;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.opengroup.osdu.azure.CosmosStore;
import org.opengroup.osdu.core.common.model.http.DpsHeaders;
import static org.mockito.Mockito.*;
@RunWith(MockitoJUnitRunner.class)
public class LegalTagRepositoryImplTest {
private static final String dataPartitionId = "data-partition-id";
@Mock
private CosmosStore cosmosStore;
@Mock
private DpsHeaders headers;
@InjectMocks
private LegalTagRepositoryImpl sut;
@Before
public void init() {
lenient().doReturn(dataPartitionId).when(headers).getPartitionId();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment