@@ -11,7 +11,6 @@ public class TestConfigSource implements ConfigSource {
1111 private final Map <String , String > properties ;
1212
1313 public TestConfigSource () {
14- final Dotenv dotenv = Dotenv .load ();
1514 properties = new HashMap <>();
1615 properties .put ("mp.initializer.allow" , "true" );
1716 properties .put ("mp.initializer.no-warn" , "true" );
@@ -20,21 +19,21 @@ public TestConfigSource() {
2019 if (hederaAccountIdByEnv != null ) {
2120 properties .put ("hedera.accountId" , hederaAccountIdByEnv );
2221 } else {
23- properties .put ("hedera.accountId" , dotenv .get ("hedera.accountId" ));
22+ properties .put ("hedera.accountId" , Dotenv . load () .get ("hedera.accountId" ));
2423 }
2524
2625 final String hederaPrivateKeyByEnv = System .getenv ("HEDERA_PRIVATE_KEY" );
2726 if (hederaPrivateKeyByEnv != null ) {
2827 properties .put ("hedera.privateKey" , hederaPrivateKeyByEnv );
2928 } else {
30- properties .put ("hedera.privateKey" , dotenv .get ("hedera.privateKey" ));
29+ properties .put ("hedera.privateKey" , Dotenv . load () .get ("hedera.privateKey" ));
3130 }
3231
3332 final String hederaNetwork = System .getenv ("HEDERA_NETWORK" );
3433 if (hederaNetwork != null ) {
3534 properties .put ("hedera.network" , hederaNetwork );
3635 } else {
37- properties .put ("hedera.network" , dotenv . get ( "hedera.network" ) );
36+ properties .put ("hedera.network" , "testnet" );
3837 }
3938 }
4039
0 commit comments