summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-service/src/test/java/org/onap/aai/sparky/util/SparkyTestConstants.java
blob: b5ff1fd7bddd5bf5e4c8d76d85c8c81eae9ac586 (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 = "file:" + PATH_TO_FILTERS_CONFIG + FILESEP + "aaiui_filters.json";
  public static final String VIEWS_JSON_FILE = "file:" + PATH_TO_FILTERS_CONFIG + FILESEP + "aaiui_views.json";
}