@Test public void testSet() { try { Action action = set("var1", "val1"); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 1); final HashMap<String, Integer> map = new HashMap<>(); map.put("a", 1); map.put("b", 2); map.put("c", 3); action = set(map); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 3); action = set("var1", 1); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 1); action = set("var1", 1.0); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 1); action = set("var1", new Date()); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 1); action = set("var1", true); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 1); ((SetAction) action).add("var2", false); assertTrue(action.getCurrentObject().size() == 2); ((SetAction) action).add("var3", 5); assertTrue(action.getCurrentObject().size() == 3); ((SetAction) action).add("var4", 5.0); assertTrue(action.getCurrentObject().size() == 4); ((SetAction) action).add("var5", "val3"); assertTrue(action.getCurrentObject().size() == 5); ((SetAction) action).add("var6", new Date()); assertTrue(action.getCurrentObject().size() == 6); ((SetAction) action).add("var2", false); assertTrue(action.getCurrentObject().size() == 6); ((SetAction) action).add("var3", 5); assertTrue(action.getCurrentObject().size() == 6); ((SetAction) action).add("var4", 5.0); assertTrue(action.getCurrentObject().size() == 6); ((SetAction) action).add("var5", "val3"); assertTrue(action.getCurrentObject().size() == 6); ((SetAction) action).add("var6", new Date()); assertTrue(action.getCurrentObject().size() == 6); } catch (final InvalidCreateOperationException e) { e.printStackTrace(); fail(e.getMessage()); } }
public static final SetAction set(final String variableName, final String value) throws InvalidCreateOperationException { return new SetAction(variableName, value); }
UpdateActionHelper { public static final SetAction set(final String variableName, final String value) throws InvalidCreateOperationException { return new SetAction(variableName, value); } }
UpdateActionHelper { public static final SetAction set(final String variableName, final String value) throws InvalidCreateOperationException { return new SetAction(variableName, value); } protected  UpdateActionHelper(); }
UpdateActionHelper { public static final SetAction set(final String variableName, final String value) throws InvalidCreateOperationException { return new SetAction(variableName, value); } protected  UpdateActionHelper(); static final AddAction add(final String variableName, final String... value); static final AddAction add(final String variableName, final boolean... value); static final AddAction add(final String variableName, final long... value); static final AddAction add(final String variableName, final double... value); static final AddAction add(final String variableName, final Date... value); static final IncAction inc(final String variableName, final long value); static final IncAction inc(final String variableName); static final MinAction min(final String variableName, final long value); static final MinAction min(final String variableName, final double value); static final MinAction min(final String variableName, final boolean value); static final MinAction min(final String variableName, final String value); static final MinAction min(final String variableName, final Date value); static final MaxAction max(final String variableName, final long value); static final MaxAction max(final String variableName, final double value); static final MaxAction max(final String variableName, final boolean value); static final MaxAction max(final String variableName, final String value); static final MaxAction max(final String variableName, final Date value); static final PullAction pull(final String variableName, final String... value); static final PullAction pull(final String variableName, final boolean... value); static final PullAction pull(final String variableName, final long... value); static final PullAction pull(final String variableName, final double... value); static final PullAction pull(final String variableName, final Date... value); static final PopAction pop(final String variableName, final int way); static final PopAction pop(final String variableName); static final PushAction push(final String variableName, final String... value); static final PushAction push(final String variableName, final boolean... value); static final PushAction push(final String variableName, final long... value); static final PushAction push(final String variableName, final double... value); static final PushAction push(final String variableName, final Date... value); static final RenameAction rename(final String variableName,
        final String newName); static final SetAction set(final String variableName, final String value); static final SetAction set(final String variableName, final List<?> value); static final SetAction set(final String variableName, final boolean value); static final SetAction set(final String variableName, final long value); static final SetAction set(final String variableName, final double value); static final SetAction set(final String variableName, final Date value); static final SetAction set(final Map<String, ?> map); static final SetAction set(final ObjectNode node); static final UnsetAction unset(final String... variableName); }
UpdateActionHelper { public static final SetAction set(final String variableName, final String value) throws InvalidCreateOperationException { return new SetAction(variableName, value); } protected  UpdateActionHelper(); static final AddAction add(final String variableName, final String... value); static final AddAction add(final String variableName, final boolean... value); static final AddAction add(final String variableName, final long... value); static final AddAction add(final String variableName, final double... value); static final AddAction add(final String variableName, final Date... value); static final IncAction inc(final String variableName, final long value); static final IncAction inc(final String variableName); static final MinAction min(final String variableName, final long value); static final MinAction min(final String variableName, final double value); static final MinAction min(final String variableName, final boolean value); static final MinAction min(final String variableName, final String value); static final MinAction min(final String variableName, final Date value); static final MaxAction max(final String variableName, final long value); static final MaxAction max(final String variableName, final double value); static final MaxAction max(final String variableName, final boolean value); static final MaxAction max(final String variableName, final String value); static final MaxAction max(final String variableName, final Date value); static final PullAction pull(final String variableName, final String... value); static final PullAction pull(final String variableName, final boolean... value); static final PullAction pull(final String variableName, final long... value); static final PullAction pull(final String variableName, final double... value); static final PullAction pull(final String variableName, final Date... value); static final PopAction pop(final String variableName, final int way); static final PopAction pop(final String variableName); static final PushAction push(final String variableName, final String... value); static final PushAction push(final String variableName, final boolean... value); static final PushAction push(final String variableName, final long... value); static final PushAction push(final String variableName, final double... value); static final PushAction push(final String variableName, final Date... value); static final RenameAction rename(final String variableName,
        final String newName); static final SetAction set(final String variableName, final String value); static final SetAction set(final String variableName, final List<?> value); static final SetAction set(final String variableName, final boolean value); static final SetAction set(final String variableName, final long value); static final SetAction set(final String variableName, final double value); static final SetAction set(final String variableName, final Date value); static final SetAction set(final Map<String, ?> map); static final SetAction set(final ObjectNode node); static final UnsetAction unset(final String... variableName);  }