Build optimization 6.07 (#2219)
* refactor testng * refactor testng * Remove test suites from surefire * Refactor * Refactor
This commit is contained in:
committed by
GitHub
parent
c99bb7fced
commit
b9b230f83e
@@ -0,0 +1,21 @@
|
||||
package com.baeldung;
|
||||
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import static org.testng.Assert.assertTrue;
|
||||
|
||||
public class PriorityLongRunningUnitTest {
|
||||
|
||||
@Test(priority = 1)
|
||||
public void givenString_whenChangedToInt_thenCorrect() {
|
||||
String testString = "10";
|
||||
assertTrue(Integer.valueOf(testString) instanceof Integer);
|
||||
}
|
||||
|
||||
@Test(priority = 2)
|
||||
public void givenInt_whenChangedToString_thenCorrect() {
|
||||
int testInt = 23;
|
||||
assertTrue(String.valueOf(testInt) instanceof String);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user