Skip to content

Commit

Permalink
improve text
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Nov 27, 2023
1 parent c1e8b6b commit e1a418f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public class ReportObjectFactory {
public static final String OVERVIEW_FILE_NAME = "overview.json";

public static final String README_FILE_NAME = "README.txt";
public static final String README_CONTENT = "To view the results go to https://jplag.github.io/JPlag/ and drag the generated zip file onto the page.";
public static final String[] README_CONTENT = new String[] {"This is a software plagiarism report generated by JPlag.",
"To view the results go to https://jplag.github.io/JPlag/ and drag the generated zip file onto the page."};

public static final String SUBMISSIONS_FOLDER = "files";
public static final String SUBMISSION_FILE_INDEX_FILE_NAME = "submissionFileIndex.json";
Expand Down Expand Up @@ -205,7 +206,7 @@ private void writeOverview(JPlagResult result, String path) {
}

private void writeReadMeFile(String path) {
new TextWriter().writeFile(README_CONTENT, path, README_FILE_NAME);
new TextWriter().writeFile(String.join(System.lineSeparator(), README_CONTENT), path, README_FILE_NAME);
}

private void writeSubmissionIndexFile(JPlagResult result, String path) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* This writer is used as a mock for testing purposes only.
*/
public class DummyWriter extends JsonWriter {
private static final Logger logger = LoggerFactory.getLogger(DummyWriter.class);
private static final String MESSAGE = "DummyWriter writes object {} to path {} with name {} as JSON.";
Expand Down

0 comments on commit e1a418f

Please sign in to comment.