Question: Java How many test cases will be executed for the below code? @Runwith (JUnitPlatform.class) @IncludeTags (Highpriority) @ExcludeTags (Highpriority)//line 1 @selectClasses (MethodTest.class) public class TestTag {

How many test cases will be executed for the below code? @Runwith (JUnitPlatform.class) @IncludeTags ("Highpriority") @ExcludeTags ("Highpriority")//line 1 @selectClasses (MethodTest.class) public class TestTag { } class MethodTest { @Tag ("Highpriority") @Test public void methodATest() { String str "info"; assertEquals("Infosys", str.concat("sys")); } @Tag ("Highpriority") @Test public void methodBTest() { String str = "INFOSYS"; assertEquals("INFOSYS", str.toUppercase ()); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
