Skip to content

Instantly share code, notes, and snippets.

@richashworth richashworth/ Secret
Last active Oct 1, 2015

What would you like to do?
Used as Class Under Test in PowerMock Example
package com.richashworth.powermockexample;
import java.util.List;
public class ResultsWriter {
public String getDataAsString(){
StringBuilder builder = new StringBuilder();
List<String> dataList = DataProvider.getData();
for(String str: dataList){
builder.append(str + "\n");
return builder.toString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.