Last active
June 28, 2020 15:07
-
-
Save richashworth/62a558a13631e222e750 to your computer and use it in GitHub Desktop.
Used as Class Under Test in PowerMock Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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