how to test this portion of code

Posted by Gandalf StormCrow on Stack Overflow See other posts from Stack Overflow or by Gandalf StormCrow
Published on 2010-03-16T15:46:00Z Indexed on 2010/03/16 16:31 UTC
Read the original article Hit count: 212

Filed under:
|

Hello I'm writting junit test how can I test this method .. this is only part of this method :

public MyClass{

public void myMethod(){
List<myObject> list = readData();
}
}

How will I make the test for this? ReadData is a private method inside MyClass?

© Stack Overflow or respective owner

Related posts about java

Related posts about junit