@Test public void testMin() throws Exception { try { Action action = min("var1", 5); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 1); assertTrue(action.getCurrentObject().path("var1").asInt() == 5); action = min("var1", 5.2); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 1); assertTrue(action.getCurrentObject().path("var1").asDouble() == 5.2); action = min("var1", false); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 1); assertTrue(action.getCurrentObject().path("var1").asBoolean() == false); action = min("var1", "val"); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 1); assertTrue(action.getCurrentObject().path("var1").asText() == "val"); final Date date = new Date(0); action = min("var1", date); assertTrue(action.getCurrentAction().size() == 1); assertTrue(action.getCurrentObject().size() == 1); final Date date2 = LocalDateUtil.getDate( action.getCurrentObject().path("var1").get(Query.DATE).asText()); assertTrue(date.equals(date2)); } catch (final InvalidCreateOperationException e) { e.printStackTrace(); fail(e.getMessage()); } }
public static final MinAction min(final String variableName, final long value) throws InvalidCreateOperationException { return new MinAction(variableName, value); }
UpdateActionHelper { public static final MinAction min(final String variableName, final long value) throws InvalidCreateOperationException { return new MinAction(variableName, value); } }
UpdateActionHelper { public static final MinAction min(final String variableName, final long value) throws InvalidCreateOperationException { return new MinAction(variableName, value); } protected  UpdateActionHelper(); }
UpdateActionHelper { public static final MinAction min(final String variableName, final long value) throws InvalidCreateOperationException { return new MinAction(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 MinAction min(final String variableName, final long value) throws InvalidCreateOperationException { return new MinAction(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);  }