Skip to content

Commit

Permalink
Fixes for payara-build-managed-4 profile
Browse files Browse the repository at this point in the history
 - Fix of failing CDI test
Fix of missing profile for Payara in data module
Fix of Java 8 test
  • Loading branch information
OndroMih committed Jul 12, 2016
1 parent 92da915 commit 9b59822
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
13 changes: 13 additions & 0 deletions deltaspike/modules/data/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,19 @@
</testResources>
</build>
</profile>
<profile>
<id>payara-build-managed-4</id>
<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
<testResource>
<directory>src/test/resources-glassfish</directory>
</testResource>
</testResources>
</build>
</profile>
<profile>
<id>tomee-build-managed</id>
<build>
Expand Down
22 changes: 22 additions & 0 deletions deltaspike/modules/data/test-java8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -225,6 +234,19 @@
</testResources>
</build>
</profile>
<profile>
<id>payara-build-managed-4</id>
<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
<testResource>
<directory>src/test/resources-glassfish</directory>
</testResource>
</testResources>
</build>
</profile>
<profile>
<id>wls-remote-12c</id>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
import java.util.stream.Stream;

import static java.util.Arrays.asList;
import java.util.Collections;
import java.util.List;
import static java.util.Collections.emptyList;
import static java.util.stream.Collectors.toList;
import static org.apache.deltaspike.data.test.java8.util.TestDeployments.initDeployment;
Expand Down Expand Up @@ -156,7 +158,9 @@ public void shouldFindNamesAsStream()
entityManager.persist(new Simple("b"));

Stream<String> names = simpleRepository2.findSimpleNames();
final List<String> actualSorted = names.collect(toList());
Collections.sort(actualSorted);

Assert.assertEquals(asList("a","b"), names.collect(toList()));
Assert.assertEquals(asList("a","b"), actualSorted);
}
}

0 comments on commit 9b59822

Please sign in to comment.