onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sclas...@apache.org
Subject svn commit: r1603905 - in /onami/trunk/persist/src/test/java/org/apache/onami/persist/test: MultiplePuTest.java multipersistenceunits/ multipersistenceunits/FirstPU.java multipersistenceunits/SecondPU.java multipersistenceunits/SimpleMultiplePuTest.java
Date Thu, 19 Jun 2014 14:52:53 GMT
Author: sclassen
Date: Thu Jun 19 14:52:52 2014
New Revision: 1603905

URL: http://svn.apache.org/r1603905
Log:
onami-persist: moved MultiplePuTest to new package multipersistenceunits

Added:
    onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/
    onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/FirstPU.java
  (with props)
    onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SecondPU.java
  (with props)
    onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SimpleMultiplePuTest.java
      - copied, changed from r1600690, onami/trunk/persist/src/test/java/org/apache/onami/persist/test/MultiplePuTest.java
Removed:
    onami/trunk/persist/src/test/java/org/apache/onami/persist/test/MultiplePuTest.java

Added: onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/FirstPU.java
URL: http://svn.apache.org/viewvc/onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/FirstPU.java?rev=1603905&view=auto
==============================================================================
--- onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/FirstPU.java
(added)
+++ onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/FirstPU.java
Thu Jun 19 14:52:52 2014
@@ -0,0 +1,18 @@
+package org.apache.onami.persist.test.multipersistenceunits;
+
+import com.google.inject.BindingAnnotation;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+
+@Retention( RetentionPolicy.RUNTIME )
+@Target( { FIELD, PARAMETER, METHOD } )
+@BindingAnnotation
+public @interface FirstPU
+{
+}

Propchange: onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/FirstPU.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/FirstPU.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/FirstPU.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SecondPU.java
URL: http://svn.apache.org/viewvc/onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SecondPU.java?rev=1603905&view=auto
==============================================================================
--- onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SecondPU.java
(added)
+++ onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SecondPU.java
Thu Jun 19 14:52:52 2014
@@ -0,0 +1,18 @@
+package org.apache.onami.persist.test.multipersistenceunits;
+
+import com.google.inject.BindingAnnotation;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+
+@Retention( RetentionPolicy.RUNTIME )
+@Target( { FIELD, PARAMETER, METHOD } )
+@BindingAnnotation
+public @interface SecondPU
+{
+}

Propchange: onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SecondPU.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SecondPU.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SecondPU.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Copied: onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SimpleMultiplePuTest.java
(from r1600690, onami/trunk/persist/src/test/java/org/apache/onami/persist/test/MultiplePuTest.java)
URL: http://svn.apache.org/viewvc/onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SimpleMultiplePuTest.java?p2=onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SimpleMultiplePuTest.java&p1=onami/trunk/persist/src/test/java/org/apache/onami/persist/test/MultiplePuTest.java&r1=1600690&r2=1603905&rev=1603905&view=diff
==============================================================================
--- onami/trunk/persist/src/test/java/org/apache/onami/persist/test/MultiplePuTest.java (original)
+++ onami/trunk/persist/src/test/java/org/apache/onami/persist/test/multipersistenceunits/SimpleMultiplePuTest.java
Thu Jun 19 14:52:52 2014
@@ -1,4 +1,4 @@
-package org.apache.onami.persist.test;
+package org.apache.onami.persist.test.multipersistenceunits;
 
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +19,6 @@ package org.apache.onami.persist.test;
  * under the License.
  */
 
-import com.google.inject.BindingAnnotation;
 import com.google.inject.Guice;
 import com.google.inject.Injector;
 import com.google.inject.Key;
@@ -27,19 +26,15 @@ import org.apache.onami.persist.EntityMa
 import org.apache.onami.persist.PersistenceModule;
 import org.apache.onami.persist.PersistenceService;
 import org.apache.onami.persist.UnitOfWork;
+import org.apache.onami.persist.test.TestEntity;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-import static java.lang.annotation.ElementType.*;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 
-public class MultiplePuTest
+public class SimpleMultiplePuTest
 {
 
     private Injector injector;
@@ -110,17 +105,4 @@ public class MultiplePuTest
         assertNull( secondEmp.get().find( TestEntity.class, firstEntity.getId() ) );
     }
 
-    @Retention( RetentionPolicy.RUNTIME )
-    @Target( { FIELD, PARAMETER, METHOD } )
-    @BindingAnnotation
-    public static @interface FirstPU
-    {
-    }
-
-    @Retention( RetentionPolicy.RUNTIME )
-    @Target( { FIELD, PARAMETER, METHOD } )
-    @BindingAnnotation
-    public static @interface SecondPU
-    {
-    }
 }



Mime
View raw message