Package org.teiid.deployers

Examples of org.teiid.deployers.VDBRepository


    validateSession(false);
  }
 
  @Test
  public void testActiveVDBWithNoVersion() throws Exception {
    VDBRepository repo = Mockito.mock(VDBRepository.class);
    VDBMetaData vdb = new VDBMetaData();
    vdb.setName("name");
    vdb.setVersion(1);
    vdb.setStatus(Status.ACTIVE);
   
   
    Mockito.stub(repo.getVDB("name")).toReturn(vdb);
   
    SessionServiceImpl ssi = new SessionServiceImpl();
    ssi.setVDBRepository(repo);
   
    ssi.getActiveVDB("name", null);
View Full Code Here


    Mockito.verify(repo, Mockito.times(1)).getVDB("name");
  }
 
  @Test
  public void testActiveVDBWithVersion() throws Exception {
    VDBRepository repo = Mockito.mock(VDBRepository.class);
    VDBMetaData vdb = new VDBMetaData();
    vdb.setName("name");
    vdb.setVersion(1);
    vdb.setStatus(Status.ACTIVE);
   
   
    Mockito.stub(repo.getVDB("name", 1)).toReturn(vdb);
   
    SessionServiceImpl ssi = new SessionServiceImpl();
    ssi.setVDBRepository(repo);
   
    ssi.getActiveVDB("name", "1");
View Full Code Here

  }
 
 
  @Test
  public void testActiveVDBNameWithVersion() throws Exception {
    VDBRepository repo = Mockito.mock(VDBRepository.class);
    VDBMetaData vdb = new VDBMetaData();
    vdb.setName("name");
    vdb.setVersion(1);
    vdb.setStatus(Status.ACTIVE);
   
   
    Mockito.stub(repo.getVDB("name", 1)).toReturn(vdb);
   
    SessionServiceImpl ssi = new SessionServiceImpl();
    ssi.setVDBRepository(repo);
   
    ssi.getActiveVDB("name.1", null);
View Full Code Here

    Mockito.verify(repo, Mockito.times(1)).getVDB("name", 1);
  }
 
  @Test
  public void testActiveVDBNameWithVersionNonInteger() throws Exception {
    VDBRepository repo = Mockito.mock(VDBRepository.class);
    VDBMetaData vdb = new VDBMetaData();
    vdb.setName("name");
    vdb.setVersion(1);
    vdb.setStatus(Status.ACTIVE);
   
   
    Mockito.stub(repo.getVDB("name", 1)).toReturn(vdb);
   
    SessionServiceImpl ssi = new SessionServiceImpl();
    ssi.setVDBRepository(repo);
   
    try {
View Full Code Here

    }
  }
 
  @Test
  public void testActiveVDBNameWithVersionAndVersion() throws Exception {
    VDBRepository repo = Mockito.mock(VDBRepository.class);
    VDBMetaData vdb = new VDBMetaData();
    vdb.setName("name");
    vdb.setVersion(1);
    vdb.setStatus(Status.ACTIVE);
   
   
    Mockito.stub(repo.getVDB("name", 1)).toReturn(vdb);
   
    SessionServiceImpl ssi = new SessionServiceImpl();
    ssi.setVDBRepository(repo);
   
    try {
View Full Code Here

      tef.getMetadata(mf, conn);
      return mf;
  }

  private MetadataFactory createMetadataFactory(String schema, Properties importProperties) {
    VDBRepository vdbRepository = new VDBRepository();
      vdbRepository.setSystemStore(VDBMetadataFactory.getSystem());
      return new MetadataFactory(schema, vdbRepository.getBuiltinDatatypes(), importProperties);
  }
View Full Code Here

TOP

Related Classes of org.teiid.deployers.VDBRepository

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.