Skip to content

Commit b0be04a

Browse files
committed
Renamed the error file and generalized it as a constant
1 parent 7de2a26 commit b0be04a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/com/adobe/campaign/tests/logparser/utils/ParseGuardRails.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class ParseGuardRails {
3131
protected static Map<String, Long> heapLimitations = new HashMap<>();
3232
protected static Map<String, Double> memoryLimitations = new HashMap<>();
3333

34+
public static final String ANOMALY_REPORT_PATH = "./logParserAnomalies.json";
3435
public static long HEAP_SIZE_AT_START = MemoryUtils.getCurrentHeapSizeMB();
3536
public static int FILE_ENTRY_LIMIT = Integer.parseInt(System.getProperty("LOGPARSER_FILEENTRY_LIMIT", "-1"));
3637
public static long HEAP_LIMIT = Integer.parseInt(System.getProperty("LOGPARSER_HEAP_LIMIT", "-1"));
@@ -192,7 +193,7 @@ public static Map<String, Set<String>> getAnomalyReport() {
192193
* Only exports if there are anomalies to report
193194
*/
194195
public static void exportAnomalyReport() {
195-
exportAnomalyReport("./anomalies.json");
196+
exportAnomalyReport(ANOMALY_REPORT_PATH);
196197
}
197198

198199
/**

src/test/java/com/adobe/campaign/tests/logparser/utils/ParseGuardRailsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
public class ParseGuardRailsTest {
3232

3333
private Path tempFile;
34-
private static final String ANOMALY_REPORT_PATH = "anomalies.json";
34+
private static final String ANOMALY_REPORT_PATH = ParseGuardRails.ANOMALY_REPORT_PATH;
3535

3636
@BeforeMethod
3737
public void setup() throws IOException {

0 commit comments

Comments
 (0)