Group testing modules (#3014)
* move security content from spring-security-rest-full * swagger update * move query language to new module * rename spring-security-rest-full to spring-rest-full * group persistence modules * group testing modules * try fix conflict
This commit is contained in:
committed by
GitHub
parent
b383d83bf4
commit
776a01429e
@@ -0,0 +1,28 @@
|
||||
package com.baeldung;
|
||||
|
||||
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 SimpleLongRunningUnitTest 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user