@Test public void patchBuilder() { List<PatchOperation> operations = HiveStatusPatchBuilder .patchBuilder() .set(AgentProperty.TRUCK_PARK_STATE, "bar") .build(); assertThat(operations.size(), is(1)); PatchOperation operation = operations.get(0); assertThat(operation.getOperation(), is(Operation.REPLACE)); assertThat(operation.getPath(), is("/destinations/hive/status/truckParkState")); assertThat(operation.getValue(), is("bar")); }
public static HiveStatusPatchBuilder patchBuilder() { return new HiveStatusPatchBuilder(); }
HiveStatusPatchBuilder { public static HiveStatusPatchBuilder patchBuilder() { return new HiveStatusPatchBuilder(); } }
HiveStatusPatchBuilder { public static HiveStatusPatchBuilder patchBuilder() { return new HiveStatusPatchBuilder(); }  }
HiveStatusPatchBuilder { public static HiveStatusPatchBuilder patchBuilder() { return new HiveStatusPatchBuilder(); }  HiveStatusPatchBuilder set(AgentProperty property, Object value); List<PatchOperation> build(); static HiveStatusPatchBuilder patchBuilder(); }
HiveStatusPatchBuilder { public static HiveStatusPatchBuilder patchBuilder() { return new HiveStatusPatchBuilder(); }  HiveStatusPatchBuilder set(AgentProperty property, Object value); List<PatchOperation> build(); static HiveStatusPatchBuilder patchBuilder();  }