/** * Tests reading {@link ZNRecord} from {@link HelixPropertyStore}, where the {@link ZNRecord} is empty. This is a * good {@link ZNRecord} format that should NOT fail fetch or update. * @throws Exception Any unexpected exception. */ @Test public void testReadBadZNRecordCase1() throws Exception { ZNRecord zNRecord = makeZNRecordWithSimpleField(null, null, null); updateAndWriteZNRecord(zNRecord, true); }
/** * Tests reading {@link ZNRecord} from {@link HelixPropertyStore}, where the {@link ZNRecord} has an irrelevant * simple field ("key": "value"), but ("accountMetadata": someValidMap) is missing. This is a good {@link ZNRecord} * format that should NOT fail fetch or update. * @throws Exception Any unexpected exception. */ @Test public void testReadBadZNRecordCase2() throws Exception { ZNRecord zNRecord = makeZNRecordWithSimpleField(null, "key", "value"); updateAndWriteZNRecord(zNRecord, true); }