Use AssertionError 09/101609/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 20 Jun 2022 11:39:07 +0000 (13:39 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 20 Jun 2022 11:39:47 +0000 (13:39 +0200)
We have an accidental use of opentest4j, make sure we use plain
AssertionError.

Change-Id: I06e0b184fdc9d129d70ba927e8f6d0d9f4001ceb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
parser/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/AbstractSchemaRepositoryTest.java

index ed353a759943e2b846de88af4bc21c3f515ff43a..676fbe89872aa566e0e8354ce2d150d110588e4f 100644 (file)
@@ -24,7 +24,6 @@ import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
 import org.opendaylight.yangtools.yang.parser.api.YangSyntaxErrorException;
 import org.opendaylight.yangtools.yang.parser.rfc7950.ir.IRSchemaSource;
 import org.opendaylight.yangtools.yang.parser.rfc7950.repo.TextToIRTransformer;
-import org.opentest4j.AssertionFailedError;
 
 public abstract class AbstractSchemaRepositoryTest {
     static @NonNull EffectiveModelContext assertModelContext(
@@ -33,7 +32,7 @@ public abstract class AbstractSchemaRepositoryTest {
         try {
             return Futures.getDone(future);
         } catch (ExecutionException e) {
-            throw new AssertionFailedError("Failed to create context", e);
+            throw new AssertionError("Failed to create context", e);
         }
     }