summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/schema/AnnotationReferenceTestCase.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahooinc.com>2022-07-28 14:44:47 +0200
committerBjørn Christian Seime <bjorncs@yahooinc.com>2022-07-28 14:51:35 +0200
commit695209a356ecae42536fd394189a98cf5274518e (patch)
treefff14a30ce9efde18a83d15ff08bbdb672119477 /config-model/src/test/java/com/yahoo/schema/AnnotationReferenceTestCase.java
parent9dab1e67022884f6644b3d8c9b02c6b3c466a879 (diff)
Convert config-model to junit5
Diffstat (limited to 'config-model/src/test/java/com/yahoo/schema/AnnotationReferenceTestCase.java')
-rw-r--r--config-model/src/test/java/com/yahoo/schema/AnnotationReferenceTestCase.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/config-model/src/test/java/com/yahoo/schema/AnnotationReferenceTestCase.java b/config-model/src/test/java/com/yahoo/schema/AnnotationReferenceTestCase.java
index dbe827ed67f..18ff1fd8536 100644
--- a/config-model/src/test/java/com/yahoo/schema/AnnotationReferenceTestCase.java
+++ b/config-model/src/test/java/com/yahoo/schema/AnnotationReferenceTestCase.java
@@ -7,11 +7,11 @@ import com.yahoo.document.Field;
import com.yahoo.document.annotation.AnnotationReferenceDataType;
import com.yahoo.schema.document.SDDocumentType;
import com.yahoo.config.model.deploy.TestProperties;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static com.yahoo.config.model.test.TestUtil.joinLines;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author arnej
@@ -38,9 +38,9 @@ public class AnnotationReferenceTestCase {
" }",
" }",
"}");
-
+
@Test
- public void noAnnotationReferenceInDocument() throws Exception {
+ void noAnnotationReferenceInDocument() throws Exception {
var builder = new ApplicationBuilder(new TestProperties());
builder.addSchema(sd);
builder.build(true);
@@ -49,7 +49,7 @@ public class AnnotationReferenceTestCase {
var complex = doc.findAnnotation("complex");
var dt = complex.getDataType();
assertTrue(dt instanceof StructDataType);
- var struct = (StructDataType)dt;
+ var struct = (StructDataType) dt;
var field = struct.getField("owner");
assertTrue(field.getDataType() instanceof AnnotationReferenceDataType);
}