@Test public void apply_returning_tsv() { final IdentifierGroupExpression expr = new IdentifierGroupExpression(VARNAME); final TimeSeriesValueSet expect = new TimeSeriesValueSet(Stream.of(tsv)); when(ctx.getGroupFromIdentifier(VARNAME)).thenReturn(Optional.of(expect)); assertEquals(expect, expr.getTSDelta(ctx)); }
@Override public TimeSeriesValueSet getTSDelta(Context<?> ctx) { return ctx.getGroupFromIdentifier(identifier_) .orElse(TimeSeriesValueSet.EMPTY); }
IdentifierGroupExpression implements GroupExpression { @Override public TimeSeriesValueSet getTSDelta(Context<?> ctx) { return ctx.getGroupFromIdentifier(identifier_) .orElse(TimeSeriesValueSet.EMPTY); } }
IdentifierGroupExpression implements GroupExpression { @Override public TimeSeriesValueSet getTSDelta(Context<?> ctx) { return ctx.getGroupFromIdentifier(identifier_) .orElse(TimeSeriesValueSet.EMPTY); } IdentifierGroupExpression(String identifier); }
IdentifierGroupExpression implements GroupExpression { @Override public TimeSeriesValueSet getTSDelta(Context<?> ctx) { return ctx.getGroupFromIdentifier(identifier_) .orElse(TimeSeriesValueSet.EMPTY); } IdentifierGroupExpression(String identifier); @Override TimeSeriesValueSet getTSDelta(Context<?> ctx); @Override PathMatcher getPathMatcher(); @Override StringBuilder configString(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
IdentifierGroupExpression implements GroupExpression { @Override public TimeSeriesValueSet getTSDelta(Context<?> ctx) { return ctx.getGroupFromIdentifier(identifier_) .orElse(TimeSeriesValueSet.EMPTY); } IdentifierGroupExpression(String identifier); @Override TimeSeriesValueSet getTSDelta(Context<?> ctx); @Override PathMatcher getPathMatcher(); @Override StringBuilder configString(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }