Reworked tests
This commit is contained in:
parent
c8fe28cda9
commit
75b33ba6d6
7 changed files with 49 additions and 42 deletions
|
@ -16,27 +16,15 @@
|
|||
|
||||
package rife.bld.extension;
|
||||
|
||||
import org.testng.Assert;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
* Implements the TestNgSimpleTest class.
|
||||
* Implements the TestNgExample class.
|
||||
*
|
||||
* @author <a href="https://erik.thauvin.net/">Erik C. Thauvin</a>
|
||||
* @since 1.0
|
||||
*/
|
||||
class TestNgSimpleTest {
|
||||
public static void main(String[] args) {
|
||||
new TestNgSimpleTest().verifyHello();
|
||||
}
|
||||
|
||||
@Test
|
||||
void testFail() {
|
||||
Assert.fail("failed");
|
||||
}
|
||||
|
||||
@Test
|
||||
void verifyHello() {
|
||||
Assert.assertTrue(true);
|
||||
@SuppressWarnings("PMD.TestClassWithoutTestCases")
|
||||
class TestNgExample {
|
||||
public String getMessage() {
|
||||
return "Hello World!";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue