You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test class does not compile as it references old APIs.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.361 s
[INFO] Finished at: 2018-09-21T09:04:34-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project myfuncsep18: Compilation failure: Compilation failure:
[ERROR] /Users/bruno/work/azure/demos/myfuncsep18/src/test/java/com/microsoft/samples/FunctionTest.java:[55,25] cannot find symbol
[ERROR] symbol: method getStatus()
[ERROR] location: variable ret of type com.microsoft.azure.functions.HttpResponseMessage
[ERROR] /Users/bruno/work/azure/demos/myfuncsep18/src/test/java/com/microsoft/samples/HttpResponseMessageMock.java:[10,8] com.microsoft.samples.HttpResponseMessageMock is not abstract and does not override abstract method getHttpStatus() in com.microsoft.azure.functions.HttpResponseMessage
[ERROR] /Users/bruno/work/azure/demos/myfuncsep18/src/test/java/com/microsoft/samples/HttpResponseMessageMock.java:[21,5] method does not override or implement a method from a supertype
[ERROR] /Users/bruno/work/azure/demos/myfuncsep18/src/test/java/com/microsoft/samples/HttpResponseMessageMock.java:[34,19] com.microsoft.samples.HttpResponseMessageMock.HttpResponseMessageBuilderMock is not abstract and does not override abstract method status(int) in com.microsoft.azure.functions.HttpResponseMessage.Builder
The text was updated successfully, but these errors were encountered:
@brunoborges
Can you share more detail infos to reproduce the issue or share the project? I create a project by mvn archetype:generate -DarchetypeGroupId=com.microsoft.azure -DarchetypeArtifactId=azure-functions-archetype and runs mvn clean package, it seems work well.
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ test ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to C:\Users\hanli\Documents\codes\test\test\target\test-classes
[WARNING] /C:/Users/hanli/Documents/codes/test/test/src/test/java/com/mc/FunctionTest.java: C:\Users\hanli\Documents\codes\test\test\src\test\java\com\mc\FunctionTest.java uses unchecked or unsafe operations.
[WARNING] /C:/Users/hanli/Documents/codes/test/test/src/test/java/com/mc/FunctionTest.java: Recompile with -Xlint:unchecked for details.
[INFO]
Generated a project using the latest archetype.
Test class does not compile as it references old APIs.
The text was updated successfully, but these errors were encountered: