Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running default unit test gives nullpointerexception #119

Open
SoucianceEqdamRashti opened this issue May 16, 2019 · 1 comment
Open

Running default unit test gives nullpointerexception #119

SoucianceEqdamRashti opened this issue May 16, 2019 · 1 comment

Comments

@SoucianceEqdamRashti
Copy link

Hello,

Are you there problems with running unit tests for a standard http trigger azure functions? Just running the default one that is generated gives a nullpointerexception straight away even though the logs indicate that the functions seems to have run correctly. When I run the function locally and send a http request everything works fine.

@mjg123
Copy link

mjg123 commented Oct 3, 2019

I tried and failed to replicate this. Generating a new Functions project with:

mvn archetype:generate \
    -DarchetypeGroupId=com.microsoft.azure \
    -DarchetypeArtifactId=azure-functions-archetype

there is no NPE either in mvn clean test nor running the generated FunctionTest in Intellij idea.

$ java -version           
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants