deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manov...@apache.org
Subject deltaspike git commit: DELTASPIKE-1215 fix Java8Test to pass with jbossas-managed-7 profile (EAP6.4)
Date Wed, 02 Nov 2016 12:21:18 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master a3f7995ed -> ce6c9f4ac


DELTASPIKE-1215 fix Java8Test to pass with jbossas-managed-7 profile (EAP6.4)


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/ce6c9f4a
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/ce6c9f4a
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/ce6c9f4a

Branch: refs/heads/master
Commit: ce6c9f4acc99fe13da5414373d7cdee94f51f474
Parents: a3f7995
Author: Matej Novotny <manovotn@apache.org>
Authored: Wed Nov 2 13:19:08 2016 +0100
Committer: Matej Novotny <manovotn@apache.org>
Committed: Wed Nov 2 13:19:08 2016 +0100

----------------------------------------------------------------------
 deltaspike/modules/data/test-java8/pom.xml      | 28 ++++++++++++++++++++
 .../data/test/java8/test/Java8Test.java         |  1 +
 2 files changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/ce6c9f4a/deltaspike/modules/data/test-java8/pom.xml
----------------------------------------------------------------------
diff --git a/deltaspike/modules/data/test-java8/pom.xml b/deltaspike/modules/data/test-java8/pom.xml
index 97caf0b..65b3c32 100644
--- a/deltaspike/modules/data/test-java8/pom.xml
+++ b/deltaspike/modules/data/test-java8/pom.xml
@@ -196,6 +196,34 @@
             </build>
         </profile>
         <profile>
+            <id>jbossas-managed-7</id>
+            <build>
+                <testResources>
+                    <testResource>
+                        <directory>src/test/resources</directory>
+                    </testResource>
+                    <testResource>
+                        <!--Can reuse Wildfly persistence xml file-->
+                        <directory>src/test/resources-wildfly</directory>
+                    </testResource>
+                </testResources>
+            </build>
+        </profile>
+        <profile>
+            <id>jbossas-remote-7</id>
+            <build>
+                <testResources>
+                    <testResource>
+                        <directory>src/test/resources</directory>
+                    </testResource>
+                    <testResource>
+                        <!--Can reuse Wildfly persistence xml file-->
+                        <directory>src/test/resources-wildfly</directory>
+                    </testResource>
+                </testResources>
+            </build>
+        </profile>
+        <profile>
             <id>tomee-build-managed</id>
             <build>
                 <testResources>

http://git-wip-us.apache.org/repos/asf/deltaspike/blob/ce6c9f4a/deltaspike/modules/data/test-java8/src/test/java/org/apache/deltaspike/data/test/java8/test/Java8Test.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/data/test-java8/src/test/java/org/apache/deltaspike/data/test/java8/test/Java8Test.java
b/deltaspike/modules/data/test-java8/src/test/java/org/apache/deltaspike/data/test/java8/test/Java8Test.java
index ec3b9ff..261556c 100644
--- a/deltaspike/modules/data/test-java8/src/test/java/org/apache/deltaspike/data/test/java8/test/Java8Test.java
+++ b/deltaspike/modules/data/test-java8/src/test/java/org/apache/deltaspike/data/test/java8/test/Java8Test.java
@@ -156,6 +156,7 @@ public class Java8Test
     {
         entityManager.persist(new Simple("a"));
         entityManager.persist(new Simple("b"));
+        entityManager.flush();
 
         Stream<String> names = simpleRepository2.findSimpleNames();
         final List<String> actualSorted = names.collect(toList());


Mime
View raw message