summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/schema/AttributeUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/test/java/com/yahoo/schema/AttributeUtils.java')
-rw-r--r--config-model/src/test/java/com/yahoo/schema/AttributeUtils.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/schema/AttributeUtils.java b/config-model/src/test/java/com/yahoo/schema/AttributeUtils.java
new file mode 100644
index 00000000000..fb7d68faf2d
--- /dev/null
+++ b/config-model/src/test/java/com/yahoo/schema/AttributeUtils.java
@@ -0,0 +1,15 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.schema;
+
+import com.yahoo.schema.document.SDField;
+
+/**
+ * Convenience class for tests that need to set attribute properties on fields.
+ */
+public class AttributeUtils {
+
+ public static void addAttributeAspect(SDField field) {
+ field.parseIndexingScript("{ attribute }");
+ }
+
+}