1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-12 17:26:13 +00:00

Check if environment variables are not empty strings as well as not null (#623)

This commit is contained in:
Ben Grabham
2022-02-20 09:48:37 -05:00
committed by GitHub
parent d8dc63fc98
commit 0b7c42e814
6 changed files with 16 additions and 12 deletions

View File

@@ -26,6 +26,7 @@ import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.net.URI;
import java.util.List;
import java.util.Objects;
/**
* Base class of integration tests with Jersey.
@@ -56,7 +57,7 @@ public abstract class BaseJerseyTest extends JerseyTest {
@Override
protected Application configure() {
String travisEnv = System.getenv("TRAVIS");
if (travisEnv == null || !travisEnv.equals("true")) {
if (!Objects.equals(travisEnv, "true")) {
// Travis doesn't like big logs
enable(TestProperties.LOG_TRAFFIC);
enable(TestProperties.DUMP_ENTITY);