Make DataTreeTip.prepare() throw a checked exception
[yangtools.git] / yang / yang-data-impl / src / test / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / ListConstraintsValidation.java
index abe4acb82f0cabc1b800a77ecc85aac1fd612c37..86b08d677ecc20ed2686af1442ee1c2ff9ff158e 100644 (file)
@@ -85,7 +85,7 @@ public class ListConstraintsValidation {
     }
 
     @Before
-    public void prepare() {
+    public void prepare() throws DataValidationFailedException {
         inMemoryDataTree = new InMemoryDataTreeFactory().create(DataTreeConfiguration.DEFAULT_OPERATIONAL,
             schemaContext);
         final DataTreeSnapshot initialDataTreeSnapshot = inMemoryDataTree.takeSnapshot();