MCPcopy Index your code
hub / github.com/cdimascio/dotenv-java / systemProperties

Method systemProperties

src/test/java/tests/BasicTests.java:115–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 @Test
116 void systemProperties() {
117 final var dotenv = Dotenv.configure()
118 .ignoreIfMalformed()
119 .systemProperties()
120 .load();
121
122 assertHostEnvVar(dotenv);
123 assertEquals("my test ev 1", dotenv.get("MY_TEST_EV1"));
124 assertEquals("my test ev 1", System.getProperty("MY_TEST_EV1"));
125 dotenv.entries().forEach(entry -> System.clearProperty(entry.getKey()));
126 }
127
128 @Test
129 void noSystemProperties() {

Callers

nothing calls this directly

Calls 7

configureMethod · 0.95
assertHostEnvVarMethod · 0.95
ignoreIfMalformedMethod · 0.80
getKeyMethod · 0.80
loadMethod · 0.65
getMethod · 0.65
entriesMethod · 0.65

Tested by

no test coverage detected