Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 20 characters in body
Source Link
Alexey R.
  • 11.6k
  • 5
  • 20
  • 39

public class Tests{

@Test public void run(){ sop("this is test method 1"); }

}

public class Tests{

  @Test
  public void run(){
    sop("this is test method 1");
  }

}

How will Jvm know about entry point of the program? 🤔

public class Tests{

@Test public void run(){ sop("this is test method 1"); }

}

How will Jvm know about entry point of the program? 🤔

public class Tests{

  @Test
  public void run(){
    sop("this is test method 1");
  }

}

How will Jvm know about entry point of the program? 🤔

Source Link
Tester68
  • 11
  • 1
  • 2

Why dont we use the main() method in TestNG class?

public class Tests{

@Test public void run(){ sop("this is test method 1"); }

}

How will Jvm know about entry point of the program? 🤔