diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-13 21:31:19 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-13 21:31:19 +0000 |
| commit | 573ad1b23218f872ec34311812a76ce4a9951e11 (patch) | |
| tree | 31ebdda5fef77bb4a45109154b7de90cb623899c /src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java | |
| parent | ed074b78dbb2a0d15ccb985b1e9531aace0fd4ea (diff) | |
Read endnote references
Diffstat (limited to 'src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java b/src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java index 2d70d3e..72a6529 100644 --- a/src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java +++ b/src/test/java/org/zwobble/mammoth/tests/DeepReflectionMatcher.java @@ -52,11 +52,7 @@ public class DeepReflectionMatcher<T> extends TypeSafeDiagnosingMatcher<T> { return matchesOptional(path, (Optional)expected, (Optional)actual, mismatchDescription); } - if (expected instanceof String) { - return matchesPrimitive(path, expected, actual, mismatchDescription); - } - - if (expected instanceof Boolean) { + if (expected instanceof String || expected instanceof Boolean || expected instanceof Enum) { return matchesPrimitive(path, expected, actual, mismatchDescription); } |
