fail("expected DataProcessingException to be thrown");
}
@Test
public void testDeleteAndBeBranchAtSameTime() throws JsonParseException, IOException, DataProcessingException {
DataComplexProcessor processor = new DataComplexProcessor(new Patch(),
dataMapFromString(
"{ \"b\": { \"$set\": { \"b\": 1} }, \"$delete\": [\"b\"] }"), //command $set should be used
dataMapFromString("{\"a\": 1}"));
boolean thrown = false;
try
{
processor.run(false);
}
catch (DataProcessingException e)
{
thrown = true;
}