From ae5ded5955978970cbe992fd41628eb2cb3d4b23 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 14 Feb 2016 11:19:05 +0000 Subject: Wrap bold runs in --- .../mammoth/tests/documents/DocumentElementMakers.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/test/java/org/zwobble/mammoth/tests/documents/DocumentElementMakers.java') diff --git a/src/test/java/org/zwobble/mammoth/tests/documents/DocumentElementMakers.java b/src/test/java/org/zwobble/mammoth/tests/documents/DocumentElementMakers.java index 396a95a..6e9409f 100644 --- a/src/test/java/org/zwobble/mammoth/tests/documents/DocumentElementMakers.java +++ b/src/test/java/org/zwobble/mammoth/tests/documents/DocumentElementMakers.java @@ -14,6 +14,10 @@ import static com.natpryce.makeiteasy.Property.newProperty; import static org.zwobble.mammoth.util.MammothLists.list; public class DocumentElementMakers { + public static final Property BOLD = newProperty(); + public static final Property ITALIC = newProperty(); + public static final Property UNDERLINE = newProperty(); + public static final Property STRIKETHROUGH = newProperty(); public static final Property> CHILDREN = newProperty(); public static final Instantiator PARAGRAPH = @@ -24,10 +28,10 @@ public class DocumentElementMakers { public static final Instantiator RUN = propertyLookup -> new Run( - false, - false, - false, - false, + propertyLookup.valueOf(BOLD, false), + propertyLookup.valueOf(ITALIC, false), + propertyLookup.valueOf(UNDERLINE, false), + propertyLookup.valueOf(STRIKETHROUGH, false), VerticalAlignment.BASELINE, Optional.empty(), propertyLookup.valueOf(CHILDREN, list())); -- cgit v1.2.3