Skip to content
Create a gist now

Instantly share code, notes, and snippets.

anonymous /junitfail secret
Created Dec 21, 2012

Terrible and meaningless unit tests
public void testCheckIfTrainingCompletedReturnsBooleanTrue() throws Exception {
boolean trainingStatus;
boolean trainingSuccessfulyComplete = true;
trainingStatus = trainingSuccessfulyComplete;
assertEquals(trainingStatus, trainingSuccessfulyComplete);
public void testCheckIfTrainingCompletedReturnsBooleanFalse() throws Exception {
boolean trainingStatus;
boolean trainingNotCompleted = false;
trainingStatus = trainingNotCompleted;
assertEquals(trainingStatus, trainingNotCompleted);
public void testTrainingHeaderIsNull() throws Exception {
TrainingEntry trainingEntry = null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.