BAEL-701 updated source after review

This commit is contained in:
dhruba619 2017-03-12 20:49:43 +05:30
parent 42ab317188
commit 9063961bb4
2 changed files with 29 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -7,6 +7,7 @@
<classes>
<class name="baeldung.com.RegistrationTest" />
<class name="baeldung.com.SignInTest" />
<class name="baeldung.com.SimpleTest" />
</classes>
</test>
</suite>