summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-service/src/test/java/org/onap/aai/sparky/util/SparkyTestConstants.java
blob: ffb27fa5a3d7315802639b1348b25228d546239b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.onap.aai.sparky.util;

import java.nio.file.Path;
import java.nio.file.Paths;

public class SparkyTestConstants {

  /** Default to unix file separator if system property file.separator is null */
  public static final String FILESEP =
      (System.getProperty("file.separator") == null) ? "/" : System.getProperty("file.separator");
  
  private static Path currentRelativePath = Paths.get("");
  public static final String PATH_TO_TEST_RESOURCES = currentRelativePath.toAbsolutePath().toString()
      + FILESEP + "src" + FILESEP + "test" + FILESEP + "resources";
  
  public static final String PATH_TO_FILTERS_CONFIG = PATH_TO_TEST_RESOURCES + FILESEP + "filters";
  public static final String FILTERS_JSON_FILE = PATH_TO_FILTERS_CONFIG + FILESEP + "aaiui_filters.json";
  public static final String VIEWS_JSON_FILE = PATH_TO_FILTERS_CONFIG + FILESEP + "aaiui_views.json";
}