Use Assert.assertThrows()
[genius.git] / mdsalutil / mdsalutil-testutils / src / test / java / org / opendaylight / genius / infra / tests / DatastoreTest.java
index 4a25bb8d2e1e511928001a340f904fabedde7fb2..8a3408aa668d3607f3f25ef829216ef4d90669d0 100644 (file)
@@ -8,23 +8,21 @@
 package org.opendaylight.genius.infra.tests;
 
 import static com.google.common.truth.Truth.assertThat;
+import static org.junit.Assert.assertThrows;
 
 import org.junit.Test;
 import org.opendaylight.genius.infra.Datastore;
-import org.opendaylight.infrautils.testutils.Asserts;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 
 public class DatastoreTest {
-
     @Test
     public void testDatastore() {
         assertThat(Datastore.toType(Datastore.CONFIGURATION)).isEqualTo(LogicalDatastoreType.CONFIGURATION);
         assertThat(Datastore.toType(Datastore.OPERATIONAL)).isEqualTo(LogicalDatastoreType.OPERATIONAL);
-        Asserts.assertThrows(NullPointerException.class, () -> Datastore.toType(null));
+        assertThrows(NullPointerException.class, () -> Datastore.toType(null));
 
         assertThat(Datastore.toClass(LogicalDatastoreType.CONFIGURATION)).isEqualTo(Datastore.CONFIGURATION);
         assertThat(Datastore.toClass(LogicalDatastoreType.OPERATIONAL)).isEqualTo(Datastore.OPERATIONAL);
-        Asserts.assertThrows(NullPointerException.class, () -> Datastore.toClass(null));
+        assertThrows(NullPointerException.class, () -> Datastore.toClass(null));
     }
-
 }