make new Datastore type a class instead of an interface 70/73270/5
authorMichael Vorburger <vorburger@redhat.com>
Wed, 20 Jun 2018 17:42:35 +0000 (19:42 +0200)
committerMichael Vorburger <vorburger@redhat.com>
Mon, 25 Jun 2018 12:36:13 +0000 (12:36 +0000)
commit41c7518faff5f2cfe55c9bd37f6e0d7abfcf05c0
tree9e651d877452783c27d29d7a1f68ceb812b4bddc
parent61d887d5722a645943edabe9349a0a7cbe316ebd
make new Datastore type a class instead of an interface

with a private constructor, just to prevent any users
from doing new Datastore() { } by accident or confusion.

also include a simple unit test for its conversion methods.

Change-Id: Ifa0b8d8ba81a9599d4e68cf519a5ccdaa88852d4
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/genius/infra/Datastore.java
mdsalutil/mdsalutil-testutils/src/test/java/org/opendaylight/genius/infra/tests/DatastoreTest.java [new file with mode: 0644]