assertEquals(VDB.Status.INACTIVE, vdb.getStatus());
// test model
List<Model> models = vdb.getModels();
assertEquals(4, models.size());
Model model = null;
for (Model m:models) {
if (m.getName().equals("pm1")) {
model = m;
break;
}
}
assertNotNull(model);
assertEquals(Model.Type.PHYSICAL, model.getModelType());
assertEquals("sample-value", model.getPropertyValue("sample"));
List<String> sourceNames = model.getSourceNames();
assertEquals(1, sourceNames.size());
assertEquals("mysql", model.getSourceTranslatorName(sourceNames.get(0)));
assertEquals("java:mysql-connector-binding", model.getSourceConnectionJndiName(sourceNames.get(0)));
assertTrue(model.isSource());
//assertTrue(model.isSupportsMultiSourceBindings());
assertTrue(model.isVisible());
// test data policies
List<DataPolicy> policies = vdb.getDataPolicies();
assertEquals(1, policies.size());
assertEquals("policy1", policies.get(0).getName());