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

VisitormanagementTest fails (when following the tutorial documentation) #47

Open
phschimm opened this issue Jan 3, 2020 · 0 comments
Open

Comments

@phschimm
Copy link
Member

phschimm commented Jan 3, 2020

Expected behavior

As a new developer, I want to learn how to test the application so that I can make sure I implemented all functionalities correctly.

Actual behavior

The issues are regarding the devon4j-testing chapter and are originating from the VisitormanagementTest class:

The tests in VisitormanagementTest (saveVisitorTest and findVisitorsTest) both fail due a NullPointerException:

java.lang.NullPointerException
	at com.devonfw.application.jtqj.visitormanagement.logic.impl.VisitormanagementTest.findVisitorsTest(VisitormanagementTest.java:55)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. Follow the written tutorial up until this point.

Related/Dependent Issues

none

Comments/Hints:

The VisitorEto class doesn't implement the methods saveVisitor(visitorEto) and findVisitors(criteria).

Affected version:

Using the devonfw IDE scripts 3.0.0 beta 25 from here.

  • OS: Windows 7
  • Browser: not applicable
@phschimm phschimm added the bug label Jan 3, 2020
@phschimm phschimm removed the bug label Jan 13, 2020
@phschimm phschimm changed the title devon4j test cases are failing and not up-to-date VisitormanagementTest fails (when following the tutorial documentation) Jan 13, 2020
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

1 participant