diff --git a/.travis.yml b/.travis.yml index b2dfe28f4..9cd101461 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,13 @@ language: java jdk: +# net.sf.cglib.core.DuplicatesPredicate$UnnecessaryBridgeFinder does not like org.objectweb.asm.ClassReader nestMembersOffset > 0 for JDK11 classes +# - openjdk-ea +# - openjdk11 +# - oraclejdk11 + - openjdk10 + - oraclejdk10 + - openjdk9 - oraclejdk8 - openjdk7 #oracle not supported anymore # openjdk6 not supported any more diff --git a/jmock-junit4/src/main/java/org/jmock/integration/junit4/package.html b/jmock-junit4/src/main/java/org/jmock/integration/junit4/package.html index 2f3af22e9..8495379c2 100644 --- a/jmock-junit4/src/main/java/org/jmock/integration/junit4/package.html +++ b/jmock-junit4/src/main/java/org/jmock/integration/junit4/package.html @@ -41,10 +41,10 @@ assert the expectations after each test has run.

public class ATestWithSatisfiedExpectations {
-  @Rule public final JMockContext context = new JMockContext();
+  \@Rule public final JMockContext context = new JMockContext();
   private final Runnable runnable = context.mock(Runnable.class);
      
-  @Test
+  \@Test
   public void doesSatisfyExpectations() {
     context.checking(new Expectations() {{
       oneOf (runnable).run();
diff --git a/jmock-legacy/src/test/java/org/jmock/test/acceptance/MockeryFinalizationAcceptanceTests.java b/jmock-legacy/src/test/java/org/jmock/test/acceptance/MockeryFinalizationAcceptanceTests.java
index f0b5022cf..4d52c1527 100644
--- a/jmock-legacy/src/test/java/org/jmock/test/acceptance/MockeryFinalizationAcceptanceTests.java
+++ b/jmock-legacy/src/test/java/org/jmock/test/acceptance/MockeryFinalizationAcceptanceTests.java
@@ -1,15 +1,20 @@
 package org.jmock.test.acceptance;
 
-import org.jmock.Mockery;
-import org.jmock.lib.legacy.ClassImposteriser;
-import org.junit.*;
+import static org.hamcrest.Matchers.isEmptyOrNullString;
+import static org.junit.Assert.assertThat;
 
 import java.io.ByteArrayOutputStream;
 import java.io.PrintStream;
 import java.lang.ref.WeakReference;
 
-import static org.hamcrest.Matchers.isEmptyOrNullString;
-import static org.junit.Assert.assertThat;
+import org.jmock.Mockery;
+import org.jmock.lib.concurrent.Synchroniser;
+import org.jmock.lib.legacy.ClassImposteriser;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * Nasty test to show GitHub #36 is fixed.
@@ -18,7 +23,9 @@ public class MockeryFinalizationAcceptanceTests
 {
     private static final int FINALIZE_COUNT = 10; // consistently shows a problem before GitHub #36 was fixed
 
-    private final Mockery mockery = new Mockery();
+    private final Mockery mockery = new Mockery() {{
+        setThreadingPolicy(new Synchroniser());
+    }};
     private final ErrorStream capturingErr = new ErrorStream();
 
     @BeforeClass
diff --git a/jmock/pom.xml b/jmock/pom.xml
index 1b952e530..d4fb23b00 100644
--- a/jmock/pom.xml
+++ b/jmock/pom.xml
@@ -43,6 +43,12 @@
             org.hamcrest
             hamcrest-library
         
+        
+            javax.xml.ws
+            jaxws-api
+            2.3.0
+            test
+        
     
 
     
@@ -122,4 +128,4 @@
         
     
 
-
\ No newline at end of file
+
diff --git a/jmock/src/main/java/org/jmock/internal/SingleThreadedPolicy.java b/jmock/src/main/java/org/jmock/internal/SingleThreadedPolicy.java
index de8ca81a2..40462af6e 100644
--- a/jmock/src/main/java/org/jmock/internal/SingleThreadedPolicy.java
+++ b/jmock/src/main/java/org/jmock/internal/SingleThreadedPolicy.java
@@ -37,7 +37,6 @@ private void reportError(String error) {
         throw new ConcurrentModificationException(error);
     }
 
-    @Override
     public InvocationDispatcher dispatcher() {
         return new UnsynchronisedInvocationDispatcher();
     }
diff --git a/jmock/src/main/java/org/jmock/lib/concurrent/Synchroniser.java b/jmock/src/main/java/org/jmock/lib/concurrent/Synchroniser.java
index fa174b66b..68dd55499 100644
--- a/jmock/src/main/java/org/jmock/lib/concurrent/Synchroniser.java
+++ b/jmock/src/main/java/org/jmock/lib/concurrent/Synchroniser.java
@@ -106,7 +106,6 @@ private Object synchroniseInvocation(Invokable mockObject, Invocation invocation
         }
     }
 
-    @Override
     public InvocationDispatcher dispatcher() {
         return invocationDispatcher;
     }
diff --git a/jmock/src/main/java/org/jmock/lib/concurrent/UnsynchronisedInvocationDispatcher.java b/jmock/src/main/java/org/jmock/lib/concurrent/UnsynchronisedInvocationDispatcher.java
index 179227580..2ca7c0b74 100644
--- a/jmock/src/main/java/org/jmock/lib/concurrent/UnsynchronisedInvocationDispatcher.java
+++ b/jmock/src/main/java/org/jmock/lib/concurrent/UnsynchronisedInvocationDispatcher.java
@@ -29,7 +29,6 @@ public UnsynchronisedInvocationDispatcher(Collection theExpectation
     /* (non-Javadoc)
      * @see org.jmock.internal.InvocationDispatcher#newStateMachine(java.lang.String)
      */
-    @Override
     public StateMachine newStateMachine(String name) {
         StateMachine stateMachine = new StateMachine(name);
         stateMachines.add(stateMachine);
@@ -39,7 +38,6 @@ public StateMachine newStateMachine(String name) {
     /* (non-Javadoc)
      * @see org.jmock.internal.InvocationDispatcher#add(org.jmock.api.Expectation)
      */
-    @Override
     public void add(Expectation expectation) {
         expectations.add(expectation);
     }
@@ -47,7 +45,6 @@ public void add(Expectation expectation) {
     /* (non-Javadoc)
      * @see org.jmock.internal.InvocationDispatcher#describeTo(org.hamcrest.Description)
      */
-    @Override
     public void describeTo(Description description) {
         describe(description, expectations);
     }
@@ -55,7 +52,6 @@ public void describeTo(Description description) {
     /* (non-Javadoc)
      * @see org.jmock.internal.InvocationDispatcher#describeMismatch(org.jmock.api.Invocation, org.hamcrest.Description)
      */
-    @Override
     public void describeMismatch(Invocation invocation, Description description) {
         describe(description, describedWith(expectations, invocation));
     }
@@ -101,7 +97,6 @@ private void describe(Description description, Iterable
-
 
     4.0.0
@@ -48,9 +49,9 @@
         1.3
         hamcrest-src
         4.12
-        3.2.0
-        5.0.4
-        2.1
+        3.2.8
+        6.2.1
+        2.6
         2.0b6
     
 
@@ -70,7 +71,6 @@
                 
                 org.apache.maven.plugins
                 maven-javadoc-plugin
-                2.9.1
                 
                     
                         check-javadoc
@@ -86,7 +86,7 @@
                 
                 org.sonatype.plugins
                 nexus-staging-maven-plugin
-                1.6.3
+                1.6.5
                 true
                 
                     ossrh
@@ -129,7 +129,7 @@
                 
                     org.apache.maven.plugins
                     maven-failsafe-plugin
-                    2.18
+                    2.20.1
                     
                         
                         true
@@ -143,7 +143,29 @@
                 
                     org.apache.maven.plugins
                     maven-jarsigner-plugin
-                    1.3.2
+                    1.4
+                
+
+                
+                    
+                    org.apache.maven.plugins
+                    maven-gpg-plugin
+                    1.6
+                
+
+                
+                    
+                    org.apache.maven.plugins
+                    maven-source-plugin
+                    3.0.1
+                
+
+                
+                    
+                    
+                    org.apache.maven.plugins
+                    maven-javadoc-plugin
+                    3.0.1
                 
 
             
@@ -193,7 +215,7 @@
             
                 com.thoughtworks.qdox
                 qdox
-                1.12.1
+                2.0-M9
                 test
             
         
@@ -238,7 +260,6 @@
                         
                         org.apache.maven.plugins
                         maven-gpg-plugin
-                        1.6
                         
                             true
                             ${gpg.keyname}
@@ -258,7 +279,6 @@
                         
                         org.apache.maven.plugins
                         maven-source-plugin
-                        2.2.1
                         
                             
                                 attach-sources
@@ -275,7 +295,6 @@
                             doc -->
                         org.apache.maven.plugins
                         maven-javadoc-plugin
-                        2.9.1
                         
                             
                                 attach-javadocs