From: Kai Moritz Date: Tue, 7 Jun 2016 15:38:56 +0000 (+0200) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=df20b904c30d47dee526297717d5d0c196f42978;p=facebook-utils WIP --- diff --git a/pom.xml b/pom.xml index a8276e5..c2b4778 100644 --- a/pom.xml +++ b/pom.xml @@ -151,27 +151,12 @@ maven-compiler-plugin 3.3 - 1.7 - 1.7 + 1.8 + 1.8 utf8 true - - org.codehaus.mojo - aspectj-maven-plugin - 1.8 - - 1.7 - - - - - compile - - - - org.apache.maven.plugins maven-source-plugin diff --git a/src/test/java/de/juplo/facebook/errors/GraphApiErrorHandlerTest.java b/src/test/java/de/juplo/facebook/errors/GraphApiErrorHandlerTest.java index d5b4455..f8cb142 100644 --- a/src/test/java/de/juplo/facebook/errors/GraphApiErrorHandlerTest.java +++ b/src/test/java/de/juplo/facebook/errors/GraphApiErrorHandlerTest.java @@ -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()) );