BAEL-701 updated source after review
This commit is contained in:
parent
42ab317188
commit
9063961bb4
|
@ -0,0 +1,28 @@
|
||||||
|
package baeldung.com;
|
||||||
|
|
||||||
|
import org.testng.Assert;
|
||||||
|
import org.testng.TestNG;
|
||||||
|
import org.testng.annotations.AfterClass;
|
||||||
|
import org.testng.annotations.BeforeClass;
|
||||||
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
|
public class SimpleTest extends TestNG {
|
||||||
|
private int number;
|
||||||
|
|
||||||
|
@BeforeClass
|
||||||
|
public void setup() {
|
||||||
|
number = 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
@AfterClass
|
||||||
|
public void tearDown() {
|
||||||
|
number = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void givenNumber_whenEven_thenTrue() {
|
||||||
|
Assert.assertTrue(number % 2 == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<classes>
|
<classes>
|
||||||
<class name="baeldung.com.RegistrationTest" />
|
<class name="baeldung.com.RegistrationTest" />
|
||||||
<class name="baeldung.com.SignInTest" />
|
<class name="baeldung.com.SignInTest" />
|
||||||
|
<class name="baeldung.com.SimpleTest" />
|
||||||
</classes>
|
</classes>
|
||||||
</test>
|
</test>
|
||||||
</suite>
|
</suite>
|
Loading…
Reference in New Issue