@Test public void restrictMediaTypeCanHandleMissingEnvVar() { assertFalse(MPFDetectionMain.getMediaTypeSelector(Map.of()).isPresent()); assertFalse(MPFDetectionMain.getMediaTypeSelector(restrictMediaTypeEnv("")).isPresent()); assertFalse(MPFDetectionMain.getMediaTypeSelector(restrictMediaTypeEnv(",")).isPresent()); }
private static Optional<String> getMediaTypeSelector() { return getMediaTypeSelector(System.getenv()); }
MPFDetectionMain { private static Optional<String> getMediaTypeSelector() { return getMediaTypeSelector(System.getenv()); } }
MPFDetectionMain { private static Optional<String> getMediaTypeSelector() { return getMediaTypeSelector(System.getenv()); } private  MPFDetectionMain(); }
MPFDetectionMain { private static Optional<String> getMediaTypeSelector() { return getMediaTypeSelector(System.getenv()); } private  MPFDetectionMain(); static void main(String[] args); static Optional<String> getMediaTypeSelector(Map<String, String> environment); }
MPFDetectionMain { private static Optional<String> getMediaTypeSelector() { return getMediaTypeSelector(System.getenv()); } private  MPFDetectionMain(); static void main(String[] args); static Optional<String> getMediaTypeSelector(Map<String, String> environment); static final String RESTRICT_MEDIA_TYPES_ENV_NAME; }