Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package com.dke.data.agrirouter.test.helper;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Base64;

/**
* Generic content reader for the testcases.
*/
public class ContentReader {

private static final String FOLDER = "./message-content/";

public static String readBase64EncodedMessageContent(Identifier identifier) throws Throwable {
Path path = Paths.get(FOLDER.concat(identifier.getFileName()));
final byte[] rawData = Files.readAllBytes(path);
return new String(Base64.getEncoder().encode(rawData));
}

public enum Identifier {
BIG_TASK_DATA("big_taskdata.zip"),
SMALL_TASK_DATA("small_taskdata.zip");

private final String fileName;

Identifier(String fileName) {
this.fileName = fileName;
}

public String getFileName() {
return fileName;
}
}

}

Large diffs are not rendered by default.