diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2019-08-30 09:40:26 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2019-08-30 09:40:26 +0200 |
commit | 192ac99fb050f540cc4cac10024534df96f2b3bf (patch) | |
tree | 84c520cc1c932288a685bf20e159210c718dfa17 /document | |
parent | 91e781364976e3192f7620b828811413f01067b9 (diff) |
Fail on no exception
Diffstat (limited to 'document')
-rw-r--r-- | document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java b/document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java index ca90e1407d0..6103dc5947f 100644 --- a/document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java +++ b/document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java @@ -1408,6 +1408,7 @@ public class JsonReaderTestCase { " 'something': {", " 'modify': {} }}}")); reader.readSingleDocument(DocumentParser.SupportedOperation.UPDATE, "id:unittest:smoke::doc1"); + fail("Expected exception"); } catch (IllegalArgumentException e) { assertEquals("Error in 'something': A modify update can only be applied to tensor fields. Field 'something' is of type 'string'", |