Skip to content
Discussion options

You must be logged in to vote

You have two problems. You can't solve both at the same time by "trying" things. If you solve one by accident, you won't notice because the other problem still blocks you.

Problem 1: You don't know if your code works.
Problem 2: You don't know if JUnit's before and after all hooks work.

So it is important to simplify your problems to the point the other problem isn't involved.

To reduce the complexity of problem 1, you can exclude JUnit all together by creating a main method that calls createDatabaseTable, testCreateEmployee and destroyDatabaseTable in order. Then run that main method. If that doesn't work you'll have to figure out why. We can't help you with that - JUnit is not involved.

T…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@enricojr01
Comment options

Answer selected by mpkorstanje
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants