This commit is contained in:
Erik C. Thauvin 2021-06-01 03:03:55 -07:00
parent 95f4c9714e
commit e77c8595cb
6 changed files with 60 additions and 58 deletions

View file

@ -76,7 +76,7 @@ public class StatusCode implements Serializable {
}
/**
* Checks if the status code is a client error.
* Checks if the status code is a client error. (eg: <code>Interal Server Error</code>)
*
* @return <code>true</code> if the status code is a client error, <code>false</code> otherwise.
*/

View file

@ -45,7 +45,7 @@ import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
/**
* The <code>TestMain</code> class.
* Main Class Tests.
*
* @author <a href="https://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
* @created 2019-05-06

View file

@ -39,7 +39,7 @@ import java.util.ResourceBundle;
import static org.testng.Assert.assertEquals;
/**
* The <code>ReasonsTest</code> class.
* Reasons Tests.
*
* @author <a href="mailto:erik@thauvin.net" target="_blank">Erik C. Thauvin</a>
* @created 2015-12-03
@ -56,4 +56,4 @@ public class ReasonsTest {
}
}
}
}

View file

@ -48,12 +48,12 @@ import static org.testng.Assert.assertTrue;
public class StatusCodeTest {
@Test
void testStatusCode() {
final StatusCode statusCode = new StatusCode(100);
StatusCode statusCode = new StatusCode();
statusCode.setCode(100);
assertEquals(statusCode.getCode(), 100, "100 is 100");
assertTrue(statusCode.isInfo(), "100 is informational");
statusCode.setCode(200);
statusCode = new StatusCode(200);
assertEquals(statusCode.getCode(), 200, "200 is 200");
assertTrue(statusCode.isSuccess(), "200 is OK");

View file

@ -41,7 +41,7 @@ import java.io.StringWriter;
import static org.testng.Assert.assertEquals;
/**
* The <code>UtilsTest</code> class.
* Utils Tests.
*
* @author <a href="mailto:erik@thauvin.net" target="_blank">Erik C. Thauvin</a>
* @created 2015-12-03