Package org.jboss.test.hibernate.ejb.interfaces

Examples of org.jboss.test.hibernate.ejb.interfaces.ProfileService.listUsers()


            // make *sure* it gets loaded into cache.  This is to check
            // that JBossCache as 2nd-level cache is properly releasing
            // resources on SF shutdown; I have manually verified this is
            // the case w/o JBossCache as the 2nd-level cache (i.e. this
            // test case passes w/o JBossCache in the mix).
            List users = service.listUsers();
            assertNotNull( users );
            assertEquals( "Incorrect result size", 1, users.size() );
         }
         finally
         {
View Full Code Here


         Long savedUserId = service.storeUser( user ).getId();
         try
         {
            getLog().info("User created with id = " + savedUserId );

            List users = service.listUsers();
            assertNotNull( users );
            assertEquals( "Incorrect result size", 1, users.size() );
         }
         finally
         {
View Full Code Here

         user.setHandle("myHandle");

         Long savedUserId = service.storeUser( user ).getId();
         getLog().info("User created with id = " + savedUserId );

         List users = service.listUsers();
         assertNotNull( users );
         assertEquals( "Incorrect result size", 1, users.size() );

         Long userId = ( ( User ) users.get( 0 ) ).getId();
         assertEquals( "Saved used not returned", savedUserId, userId );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.