Package org.teiid.adminapi

Examples of org.teiid.adminapi.Model


    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());
View Full Code Here

TOP

Related Classes of org.teiid.adminapi.Model

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.