Refactor MockConfiguration to extend ConfigurationImpl 60/29760/4
authorTom Pantelis <tpanteli@brocade.com>
Mon, 16 Nov 2015 07:47:21 +0000 (02:47 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 18 Nov 2015 23:00:40 +0000 (23:00 +0000)
commit2f523ae2a9be64bf53d1962fd9ddefe47617ff28
tree2356e7e14a7542edafc0c6298cfdb0ff7ce774ff
parent08591227e9e63e865dec56dbe12152b3c4cab144
Refactor MockConfiguration to extend ConfigurationImpl

MockConfiguration is now essentially a wrapper for
ModuleShardConfigProvider whose source is a shard name -> members map.
This will make it easier when adding new methods to Configuration
plus unit tests will now use the producton ConfigurationImpl as this
class is simple enough where we don't really need the functionality mocked.

Change-Id: I88e520b275a658a6d718442ad31c1f1e3603c70c
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/MockConfiguration.java