Harden tests and update runtime config docs

This commit is contained in:
2026-02-15 14:33:40 +03:00
parent b97c369f46
commit d1247eec18
4 changed files with 14 additions and 11 deletions

View File

@@ -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);
}
}