Package org.jboss.test.ejb3.vfs.impl.vfs3

Examples of org.jboss.test.ejb3.vfs.impl.vfs3.UnifiedVirtualFileFactoryImplUnitTest


      final AsyncTesterCommonBusiness bean = this.getTesterBean();
      Assert.assertTrue("Nointerface invocation not executed in new Thread",bean.isNointerfaceAsyncInvocationExecutedInNewThread());
   }

   public void testLocalBlockingInvocation() throws Exception{
      final AsyncTesterCommonBusiness bean = this.getTesterBean();
      Assert.assertTrue("Local non-async invocation not executed in same Thread",bean.isLocalBlockingInvocationExecutedInSameThread());
   }
View Full Code Here


      final AsyncTesterCommonBusiness bean = this.getTesterBean();
      Assert.assertTrue("Local non-async invocation not executed in same Thread",bean.isLocalBlockingInvocationExecutedInSameThread());
   }

   public void testLocalCancel() throws Exception{
       final AsyncTesterCommonBusiness bean = this.getTesterBean();
       Assert.assertTrue("Local async call should be able to be cancelled",bean.cancelInterruptIfRunningWorksLocal());
   }
View Full Code Here

       final AsyncTesterCommonBusiness bean = this.getTesterBean();
       Assert.assertTrue("Local async call should be able to be cancelled",bean.cancelInterruptIfRunningWorksLocal());
   }

   public void testLocalRemote() throws Exception{
       final AsyncTesterCommonBusiness bean = this.getTesterBean();
       Assert.assertTrue("Remote async call should be able to be cancelled",bean.cancelInterruptIfRunningWorksRemote());
   }
View Full Code Here

   private AsyncTesterCommonBusiness getTesterBean() throws Exception {
      final InitialContext ctx = getInitialContext();
      final String jndiName = "AsyncTesterBean/remote";
      final Object ref = ctx.lookup(jndiName);
      final AsyncTesterCommonBusiness bean = (AsyncTesterCommonBusiness) ref;
      return bean;
   }
View Full Code Here

      throws Exception
   {
      InitialContext ctx = getInitialContext();
      String jndiName = "ejb3/basic/SimpleSessionBean";
      Object ref = ctx.lookup(jndiName);
      SimpleSession test = (SimpleSession) ref;
      test.ping();
   }
View Full Code Here

      throws Exception
   {
      InitialContext ctx = getInitialContext();
      String jndiName = "ejb3/basic/SimpleSessionBean";
      Object ref = ctx.lookup(jndiName);
      SimpleSession test = (SimpleSession) ref;
      test.ping();
   }
View Full Code Here

   }
  
   public void testDefaultSettings() throws Exception
   {
      InitialContext ctx = this.getInitialContext();
      PersistenceUnitSettings settings = (PersistenceUnitSettings) ctx.lookup("ejb3/ejbthree1597/PersistenceUnitSettings");

      assertEquals("org.hibernate.cache.HashtableCacheProvider", settings.getCacheProvider());
      assertEquals("org.hibernate.transaction.JBossTransactionManagerLookup", settings.getTransactionManagerLookup());
      assertEquals("after_statement", settings.getConnectionReleaseMode());
      assertEquals("org.hibernate.dialect.HSQLDialect", settings.getDialect());
      assertEquals("org.hibernate.hql.ast.ASTQueryTranslatorFactory", settings.getQueryTranslatorFactory());
      assertFalse(settings.isAutoCloseSessionEnabled());
      assertFalse(settings.isAutoCreateSchema());
      assertFalse(settings.isAutoDropSchema());
      assertFalse(settings.isAutoUpdateSchema());
      assertFalse(settings.isAutoValidateSchema());
      assertFalse(settings.isFlushBeforeCompletionEnabled());
   }
View Full Code Here

     InitialContext ctx = this.getInitialContext();
     SoccerFacade stats = (SoccerFacade) ctx.lookup("ejb3/ejbthree7376/SoccerFacade");
     getLog().info("testJPA about to add player");
     stats.addPlayer(0,"Heather Mitts","Boston Breakers", 0); // 2009 season
     getLog().info("testJPA player added.  About to look up player");
     Player p = stats.getPlayer(0);
     assertNotNull("player is null" , p);
     assertEquals(p.getName(), "Heather Mitts");
     assertEquals(p.getTeam(), "Boston Breakers");
     getLog().info("testJPA end");
   }
View Full Code Here

     SoccerFacade stats = (SoccerFacade) ctx.lookup("ejb3/ejbthree7376/SoccerFacade");
     getLog().info("testJPA about to add player");
     stats.addPlayer(2,"Fabiana","Boston Breakers", 5); // 2009 season
     assertNotNull("player is null", stats.getPlayer(2));
     getLog().info("testJPA player added.  About to look up player");
     Player p = stats.getPlayerReadLock(2);
     assertNotNull("player is null" , p);
     assertEquals(p.getName(), "Fabiana");
     assertEquals(p.getTeam(), "Boston Breakers");
     getLog().info("testJPA end");
  }
View Full Code Here

     SoccerFacade stats = (SoccerFacade) ctx.lookup("ejb3/ejbthree7376/SoccerFacade");
     getLog().info("testJPA about to add player");
     stats.addPlayer(3,"Kelly Smith","Boston Breakers", 10); // 2009 season
     assertNotNull("player is null", stats.getPlayer(3));
     getLog().info("testJPA player added.  About to look up player");
     Player p = stats.getPlayerOptimisticLock(3);
     assertNotNull("player is null" , p);
     assertEquals(p.getName(), "Kelly Smith");
     assertEquals(p.getTeam(), "Boston Breakers");
     getLog().info("testJPA end");

  }
View Full Code Here

TOP

Related Classes of org.jboss.test.ejb3.vfs.impl.vfs3.UnifiedVirtualFileFactoryImplUnitTest

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.