Skip to content

anonymous /junitfail secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Terrible and meaningless unit tests
@Test
public void testCheckIfTrainingCompletedReturnsBooleanTrue() throws Exception {
boolean trainingStatus;
boolean trainingSuccessfulyComplete = true;
trainingStatus = trainingSuccessfulyComplete;
assertEquals(trainingStatus, trainingSuccessfulyComplete);
}
@Test
public void testCheckIfTrainingCompletedReturnsBooleanFalse() throws Exception {
boolean trainingStatus;
boolean trainingNotCompleted = false;
trainingStatus = trainingNotCompleted;
assertEquals(trainingStatus, trainingNotCompleted);
}
@Test
public void testTrainingHeaderIsNull() throws Exception {
TrainingEntry trainingEntry = null;
assertNull(trainingEntry);
}
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.