aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/test/java/com
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-03-24 12:43:39 +0000
committerArne H Juul <arnej@yahooinc.com>2022-03-24 12:43:39 +0000
commita0b33626e526fa3f32efacdbcada2b2ce907ebdd (patch)
tree29e83f88a5cc28f13c0e4461ab1e33373dc30370 /document/src/test/java/com
parentaa0db2b5fb1a1017444aa3f2b4124ea53c46c047 (diff)
split into two methods (review feedback)
Diffstat (limited to 'document/src/test/java/com')
-rw-r--r--document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java b/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java
index 622c7b2237f..5770b998c69 100644
--- a/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java
+++ b/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java
@@ -605,38 +605,63 @@ search annotationsimplicitstruct {
var docType = manager.getDocumentType("foo");
var struct = docType.getDeclaredStructType("mystructinfoo");
assertNotNull(struct);
+ struct = docType.getStructType("mystructinfoo");
assertNotNull(struct.getField("f1"));
struct = docType.getDeclaredStructType("mystructinbar");
assertNull(struct);
+ struct = docType.getStructType("mystructinbar");
+ assertNull(struct);
struct = docType.getDeclaredStructType("mystructinfoobar");
assertNull(struct);
+ struct = docType.getStructType("mystructinfoobar");
+ assertNull(struct);
struct = docType.getDeclaredStructType("mystruct");
+ assertNull(struct);
+ struct = docType.getStructType("mystruct");
assertNotNull(struct);
assertNotNull(struct.getField("f0"));
docType = manager.getDocumentType("bar");
struct = docType.getDeclaredStructType("mystructinfoo");
assertNull(struct);
+ struct = docType.getStructType("mystructinfoo");
+ assertNull(struct);
struct = docType.getDeclaredStructType("mystructinbar");
assertNotNull(struct);
assertNotNull(struct.getField("f2"));
+ struct = docType.getStructType("mystructinbar");
+ assertNotNull(struct);
+ assertNotNull(struct.getField("f2"));
struct = docType.getDeclaredStructType("mystructinfoobar");
assertNull(struct);
+ struct = docType.getStructType("mystructinfoobar");
+ assertNull(struct);
struct = docType.getDeclaredStructType("mystruct");
+ assertNull(struct);
+ struct = docType.getStructType("mystruct");
assertNotNull(struct);
assertNotNull(struct.getField("f0"));
docType = manager.getDocumentType("foobar");
struct = docType.getDeclaredStructType("mystructinfoo");
+ assertNull(struct);
+ struct = docType.getStructType("mystructinfoo");
assertNotNull(struct);
assertNotNull(struct.getField("f1"));
struct = docType.getDeclaredStructType("mystructinbar");
+ assertNull(struct);
+ struct = docType.getStructType("mystructinbar");
assertNotNull(struct);
assertNotNull(struct.getField("f2"));
struct = docType.getDeclaredStructType("mystructinfoobar");
assertNotNull(struct);
assertNotNull(struct.getField("f3"));
+ struct = docType.getStructType("mystructinfoobar");
+ assertNotNull(struct);
+ assertNotNull(struct.getField("f3"));
struct = docType.getDeclaredStructType("mystruct");
+ assertNull(struct);
+ struct = docType.getStructType("mystruct");
assertNotNull(struct);
assertNotNull(struct.getField("f0"));
}