-
-
Save anonymous/8d2b90022ffb23f30749 to your computer and use it in GitHub Desktop.
Terrible and meaningless unit tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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