Shard Status logic in genius
[genius.git] / mdsalutil / mdsalutil-testutils / src / main / java / org / opendaylight / genius / mdsalutil / testutils / TestShardStatusMonitor.java
1 /*
2  * Copyright (c) 2019 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.genius.mdsalutil.testutils;
9
10 import static org.opendaylight.yangtools.testutils.mockito.MoreAnswers.realOrException;
11
12 import java.util.List;
13 import org.mockito.Mockito;
14 import org.opendaylight.genius.mdsalutil.interfaces.ShardStatusMonitor;
15
16 public abstract class TestShardStatusMonitor implements ShardStatusMonitor {
17
18     public static TestShardStatusMonitor newInstance() {
19         return Mockito.mock(TestShardStatusMonitor.class, realOrException());
20     }
21
22     @Override
23     public  boolean getShardStatus(List<String> shards) {
24         return true;
25     }
26 }