<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>
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())
);