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
public void testSetWeight() | |
{ | |
float INT_TEST_PRECISION = 0; | |
// Create a client object using the constructor with 5 parameters. | |
Client tstClient = new Client("Smith", "Carl", 44, 70, 200); | |
assertNotNull(tstClient); | |
// set weight to a new value | |
tstClient.setWeight(180); | |
// Verify weight has been set to new value | |
assertEquals(180, tstClient.getWeight(), INT_TEST_PRECISION); | |
// set weight to a new value | |
tstClient.setWeight(150); | |
// Verify weight has been set to new value | |
assertEquals(150, tstClient.getWeight(), , INT_TEST_PRECISION); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment