Harden tests and update runtime config docs
This commit is contained in:
@@ -2,20 +2,17 @@ package ru.otus.petstore.config;
|
||||
|
||||
public final class TestConfig {
|
||||
|
||||
private static final String BASE_URI =
|
||||
System.getProperty("base.uri", "https://petstore.swagger.io");
|
||||
|
||||
private static final String BASE_PATH =
|
||||
System.getProperty("base.path", "/v2");
|
||||
private static final String DEFAULT_BASE_URI = "https://petstore.swagger.io";
|
||||
private static final String DEFAULT_BASE_PATH = "/v2";
|
||||
|
||||
private TestConfig() {
|
||||
}
|
||||
|
||||
public static String getBaseUri() {
|
||||
return BASE_URI;
|
||||
return System.getProperty("base.uri", DEFAULT_BASE_URI);
|
||||
}
|
||||
|
||||
public static String getBasePath() {
|
||||
return BASE_PATH;
|
||||
return System.getProperty("base.path", DEFAULT_BASE_PATH);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user