Introduce ShardStrategy and related code
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / shardstrategy / DefaultShardStrategyTest.java
1 package org.opendaylight.controller.cluster.datastore.shardstrategy;
2
3 import junit.framework.Assert;
4 import org.junit.Test;
5 import org.opendaylight.controller.md.cluster.datastore.model.TestModel;
6
7 public class DefaultShardStrategyTest {
8
9   @Test
10   public void testFindShard() throws Exception {
11     String shard = new DefaultShardStrategy().findShard(TestModel.TEST_PATH);
12     Assert.assertEquals(DefaultShardStrategy.DEFAULT_SHARD, shard);
13   }
14 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.