BAEL-716 Junit vs testng improvement updated formatting
This commit is contained in:
parent
d85f1640d7
commit
c817aec2dc
|
@ -6,20 +6,17 @@ import org.junit.FixMethodOrder;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runners.MethodSorters;
|
import org.junit.runners.MethodSorters;
|
||||||
|
|
||||||
|
|
||||||
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||||
public class SortedTests {
|
public class SortedTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void a_givenString_whenChangedtoInt_thenTrue(){
|
public void a_givenString_whenChangedtoInt_thenTrue() {
|
||||||
assertTrue(
|
assertTrue(Integer.valueOf("10") instanceof Integer);
|
||||||
Integer.valueOf("10") instanceof Integer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void b_givenInt_whenChangedtoString_thenTrue(){
|
public void b_givenInt_whenChangedtoString_thenTrue() {
|
||||||
assertTrue(
|
assertTrue(String.valueOf(10) instanceof String);
|
||||||
String.valueOf(10) instanceof String);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,14 +10,12 @@ public class PriorityTest {
|
||||||
|
|
||||||
@Test(priority = 1)
|
@Test(priority = 1)
|
||||||
public void givenString_whenChangedToInt_thenCorrect() {
|
public void givenString_whenChangedToInt_thenCorrect() {
|
||||||
Assert.assertTrue(
|
Assert.assertTrue(Integer.valueOf(testString) instanceof Integer);
|
||||||
Integer.valueOf(testString) instanceof Integer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(priority = 2)
|
@Test(priority = 2)
|
||||||
public void givenInt_whenChangedToString_thenCorrect() {
|
public void givenInt_whenChangedToString_thenCorrect() {
|
||||||
Assert.assertTrue(
|
Assert.assertTrue(String.valueOf(testInt) instanceof String);
|
||||||
String.valueOf(testInt) instanceof String);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue