}
}
public void test_230_define_series_in_schema1() {
try {
UpdatableSchema schema1 = db.getSchemas("schema1").iterator().next().edit();
Schema schema2 = db.getSchemas("schema2").iterator().next();
schema1.addSeries(1);
schema1.setSeriesName(1, "foo");
schema1.setSeriesDescription(1, "foo series");
schema1.setSeriesTimeDomain(1, Workday.DOMAIN);
schema1.setSeriesType(1, db.getValueType("numeric"));
schema1.addAttribute(1, 6);
schema1.setAttributeProperty(1, 6, db.getProperty("prop2", true));
schema1.setAttributeDefault(1, 6, "t2v2");
schema1.applyUpdates();
assertEquals("foo", schema1.getSeriesDefinition(1, true).getName());
assertEquals("foo series", schema1.getSeriesDefinition(1, true).getDescription());
assertEquals(null, schema2.getSeriesDefinition(1, false));
} catch (Exception e) {
fail(e.getMessage());
}
}