Package org.jboss.metadata.rar.jboss.mcf

Examples of org.jboss.metadata.rar.jboss.mcf.LocalDataSourceDeploymentMetaData


      ManagedConnectionFactoryDeploymentGroup ds = unmarshalMCFD();
      assertNotNull(ds);
      assertEquals(ds.getDeployments().size(), 1);
      assertNotNull(ds.getDeployments().get(0));
      assertTrue(ds.getDeployments().get(0) instanceof LocalDataSourceDeploymentMetaData);
      LocalDataSourceDeploymentMetaData ld = (LocalDataSourceDeploymentMetaData)ds.getDeployments().get(0);
      assertTestNoXAMinimal(ld);
   }
View Full Code Here


    */  
   public void testDsBasic() throws Exception
   {

      ManagedConnectionFactoryDeploymentGroup ds = unmarshalMCFD();
      LocalDataSourceDeploymentMetaData ld = (LocalDataSourceDeploymentMetaData)ds.getDeployments().get(0);
      assertTestNoXAMinimal(ld);
      assertEquals(ld.getConnectionProperties().size(), 0);
      assertEquals(ld.getUserName(), "sa");
      assertEquals(ld.getPassWord(), "");
     
      assertEquals(ld.getSecurityMetaData().getDomain(), "HsqlDbRealm");
      assertEquals(ld.getMinSize(), 5);
      assertEquals(ld.getMaxSize(), 20);
      assertEquals(ld.getIdleTimeoutMinutes(), 0);


      assertEquals(ld.getTrackStatements(), "");
      assertEquals(ld.getPreparedStatementCacheSize(), 32);
      assertNotNull(ld.getDbmsMetaData());
      assertEquals(ld.getDbmsMetaData().getTypeMapping(), "Hypersonic SQL");
   }
View Full Code Here

    * test a everything of local-tx-datasource
    */
   public void testLocalTxDsEverything() throws Exception
   {
      ManagedConnectionFactoryDeploymentGroup ds = unmarshalMCFD();
      LocalDataSourceDeploymentMetaData ld = (LocalDataSourceDeploymentMetaData)ds.getDeployments().get(0);
      assertTestNoXAMinimal(ld);
     
      assertFalse(ld.isUseJavaContext());
      assertTestUrl(ld);
      assertNotNull(ld.getTransactionIsolation());
      assertEquals(ld.getConnectionProperties().size(), 2);
      assertTrue(ld.getConnectionProperties().get(0).getName().equals("char.encoding"));
      assertTrue(ld.getConnectionProperties().get(1).getValue().equals("+8"));
      assertTestUser(ld);
      assertEquals(ld.getSecurityMetaData().getDomain(), "HsqlDbRealm");
      assertTestConnectionPool(ld);
      assertTrue(ld.isValidateOnMatch());

      assertTestDatasource(ld);
     
      assertTestAddition(ld);
      assertTestOption(ld);
View Full Code Here

TOP

Related Classes of org.jboss.metadata.rar.jboss.mcf.LocalDataSourceDeploymentMetaData

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.