]> juplo.de Git - facebook-utils/commitdiff
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 a8276e522728d8b97c6a412c5eec52535f1405bc..c2b4778ec9edd7973202b1b1a2b7ca201ee2a781 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 d5b44556bce9306516b8d8567752a0a83da674bf..f8cb142f6cd7a6edfb70e989c943036cee305b9e 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())
         );