Repository: tomee Updated Branches: refs/heads/master 25300f7bb -> d5ef3cbb5
TOMEE-1553 supporting junit 4.12 with EJBContainerRunner Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/d5ef3cbb Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/d5ef3cbb Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/d5ef3cbb Branch: refs/heads/master Commit: d5ef3cbb582cb989596e9e3fd7cc6262ab2bd537 Parents: 25300f7 Author: Romain Manni-Bucau <rmannibu...@apache.org> Authored: Tue Apr 21 10:26:48 2015 +0200 Committer: Romain Manni-Bucau <rmannibu...@apache.org> Committed: Tue Apr 21 10:26:48 2015 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/openejb/junit/jee/EJBContainerRunner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/d5ef3cbb/container/openejb-junit/src/main/java/org/apache/openejb/junit/jee/EJBContainerRunner.java ---------------------------------------------------------------------- diff --git a/container/openejb-junit/src/main/java/org/apache/openejb/junit/jee/EJBContainerRunner.java b/container/openejb-junit/src/main/java/org/apache/openejb/junit/jee/EJBContainerRunner.java index bfd30b4..a5d884b 100644 --- a/container/openejb-junit/src/main/java/org/apache/openejb/junit/jee/EJBContainerRunner.java +++ b/container/openejb-junit/src/main/java/org/apache/openejb/junit/jee/EJBContainerRunner.java @@ -50,7 +50,7 @@ public class EJBContainerRunner extends BlockJUnit4ClassRunner { @Override protected List<FrameworkMethod> computeTestMethods() { - final List<FrameworkMethod> methods = super.computeTestMethods(); + final List<FrameworkMethod> methods = new ArrayList<>(super.computeTestMethods()); // copy cause of junit 4.12 which is umodifiable Collections.shuffle(methods); // real tests should manage shuffle ordering return methods; }