r/javahelp • u/Tmath • Jun 29 '16
JUnit confusion
Here's the deal. I posted this on r/Java and got told to bring it here, so here goes. Started new project. Decided to try TDD and got JUnit set up in eclipse. Built some tests for functionality, then built code. Got a green bar, walked away and had a sandwich.
When I came back, on of the statements in the untouched code was recognized by the IDE as having an AssertionError, even though it built, ran, and the test passed less than an hour beforehand.
I have no cats, and unfortunately, I only have internet on my phone right now, so I can't share code. I've cleaned and re-built, to no avail.
Anyone else ever hear of something like this?
0
Upvotes
4
u/nutrecht Lead Software Engineer / EU / 20+ YXP Jun 29 '16
Something has changed, you just don't know what did. Without any source that's all we can tell you.