Question
How do you test a "private" method?

Answers

When a method is declared as "private", it can only be accessed within the same class. So there is no way to test a "private" method of a target class from any test class. Hence you need to perform unit testing manually. Or you have to change your method from "private" to "protected".   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Describe briefly metabolic disorders in man.
  • Q what is the total amount recovered by RBI after Demonetization ?
  • Q What are the important guidelines for organizing an effective Press Conference?
  • Q Australian novelist Harry Nicholaides was jailed in January 2009 for insulting the monarchy in which country?
  • Q Using VB, how can you change the Mouse Pointer?
  • Q The North-South corridor connects Srinagar and ______:
  • Q What are the electro cardiogram findings of a mobitz type ii second degree av block?
  • Q US Jazz guitarist Huey Long who died aged 105 was a member of which famous 1940s male vocal group?
  • Q Is the stage when an insect larva is within a cocoon a stage of total biological inactivity?
  • Q Which statements are true regarding classless routing protocols? Select two. A. The use of discontiguous subnets is not allowed B. The use of variable length subnet masks is permitted C. RIP v1 is a classless routing protocol D. IGRP supports classless routing within the same autonomous system E. RIP v2 supports classless routing
  • Q What are the various diagnostic operators available in apache pig?