}
public void test_24() {
try {
UpdatableSeries<Double> s = db.getSeries(SERIES, true).edit().typeCheck(Double.class);
TimeIndex t = s.getTimeDomain().time("2011-03-08");
assertEquals(42.0, s.getValue(t));
t = s.getTimeDomain().time("2011-03-14");
s.scanValue(t, "51.3");
s.scanValue(t.add(2), "55");
s.applyUpdates();
if (DUMP)
System.out.println(t.getTimeDomain() + " " + s.getRange());
assertEquals(9, s.getRange().getSize());
if (DUMP)
System.out.println(s.getValues(null));
boolean done = s.setRange(new Range(t.getTimeDomain(), "2011-03-12", "2011-03-17", Adjustment.NONE));
if (DUMP)
System.out.println(s.getValues(null));
assertFalse(done);
done = s.setRange(new Range(t.getTimeDomain(), "2011-03-12", "2011-03-16", Adjustment.NONE));
s.applyUpdates();
if (DUMP)
System.out.println(s.getValues(null));
assertEquals(3, s.getRange().getSize());
done = s.setRange(null);