/sigmah/src/test/java/org/sigmah/test/TestScopeTest.java
http://sigma-h.googlecode.com/ · Java · 31 lines · 18 code · 9 blank · 4 comment · 0 complexity · dbcebb8b88cc219259252b1e4a6adc09 MD5 · raw file
- /*
- * All Sigmah code is released under the GNU General Public License v3
- * See COPYRIGHT.txt and LICENSE.txt.
- */
-
- package org.sigmah.test;
-
- import com.google.inject.Inject;
- import org.junit.Assert;
- import org.junit.Test;
- import org.junit.runner.RunWith;
-
- import javax.persistence.EntityManager;
-
- @RunWith(InjectionSupport.class)
- @Modules(MockHibernateModule.class)
- public class TestScopeTest {
-
- @Inject
- private EntityManager em1;
-
-
- @Inject
- private EntityManager em2;
-
- @Test
- public void test() {
- Assert.assertSame(em1, em2);
- }
-
- }