How Do You Test a protected Method?
Submitted by: AdministratorWhen a method is declared as "protected", it can only be accessed within the same package where the class is defined.
In order to test a "protected" method of a target class, you need to define your test class in the same package as the target class.
Submitted by: Administrator
In order to test a "protected" method of a target class, you need to define your test class in the same package as the target class.
Submitted by: Administrator
Read Online JUnit Job Interview Questions And Answers
Top JUnit Questions
☺ | What Is JUnit? |
☺ | Why Does Poeple Import org.junit.Assert Statically? |
☺ | How To Wirte a Simple JUnit Test Class? |
☺ | Why Do You Use JUnit to Test Your Code? |
☺ | How Do You Launch a Debugger When a Test Fails? |
Top Testing Categories
☺ | Manual Testing Interview Questions. |
☺ | Rational TestSuite Interview Questions. |
☺ | QTP Interview Questions. |
☺ | Database Testing Interview Questions. |
☺ | Software QA Interview Questions. |