WIP
authorKai Moritz <kai@juplo.de>
Tue, 7 Jun 2016 15:38:56 +0000 (17:38 +0200)
committerKai Moritz <kai@juplo.de>
Tue, 7 Jun 2016 15:38:56 +0000 (17:38 +0200)
pom.xml
src/test/java/de/juplo/facebook/errors/GraphApiErrorHandlerTest.java

diff --git a/pom.xml b/pom.xml
index a8276e5..c2b4778 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <artifactId>maven-compiler-plugin</artifactId>
         <version>3.3</version>
         <configuration>
-          <source>1.7</source>
-          <target>1.7</target>
+          <source>1.8</source>
+          <target>1.8</target>
           <encoding>utf8</encoding>
           <showWarnings>true</showWarnings>
         </configuration>
       </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>aspectj-maven-plugin</artifactId>
-        <version>1.8</version>
-        <configuration>
-          <complianceLevel>1.7</complianceLevel>
-        </configuration>
-        <executions>
-          <execution>
-            <goals>
-              <goal>compile</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-source-plugin</artifactId>
index d5b4455..f8cb142 100644 (file)
@@ -687,8 +687,9 @@ public class GraphApiErrorHandlerTest
     requestFactory = new MockClientHttpRequestFactory();
     requestFactory.setStatus(HttpStatus.BAD_REQUEST);
     requestFactory.addHeader("Content-Type", "application/json");
-    clientTemplate.setRequestFactory(requestFactory);
 
+    clientTemplate = new RestTemplate();
+    clientTemplate.setRequestFactory(requestFactory);
     clientTemplate.setErrorHandler(
         new GraphApiErrorHandler(clientTemplate.getErrorHandler())
         );