File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
core/src/test/java/com/sap/ai/sdk/core Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class AiCoreServiceKeyAccessorTest {
1212
1313 @ Test
1414 void testValidDotenv () {
15- var dotenv = Dotenv .configure ().directory ( "./src/test/resources" ). filename ("valid.testenv" );
15+ var dotenv = Dotenv .configure ().filename ("valid.testenv" );
1616 var accessor = new AiCoreServiceKeyAccessor (dotenv );
1717 assertThat (accessor .getServiceBindings ()).isNotEmpty ().hasSize (1 );
1818 assertThat (accessor .getServiceBindings ().get (0 ).getCredentials ())
@@ -24,8 +24,7 @@ void testValidDotenv() {
2424
2525 @ Test
2626 void testMissingClientIdDotenv () {
27- var dotenv =
28- Dotenv .configure ().directory ("src/test/resources" ).filename ("missingClientId.testenv" );
27+ var dotenv = Dotenv .configure ().filename ("missingClientId.testenv" );
2928 var accessor = new AiCoreServiceKeyAccessor (dotenv );
3029 assertThatThrownBy (accessor ::getServiceBindings )
3130 .isInstanceOf (ServiceBindingAccessException .class )
@@ -42,7 +41,7 @@ void testMissingDotenv() {
4241
4342 @ Test
4443 void testMalformedDotenv () {
45- var dotenv = Dotenv .configure ().directory ( "src/test/resources" ). filename ("malformed.testenv" );
44+ var dotenv = Dotenv .configure ().filename ("malformed.testenv" );
4645
4746 // Dotenv should be loaded lazily and not throw before actually loading the file
4847 var accessor = new AiCoreServiceKeyAccessor (dotenv );
You can’t perform that action at this time.
0 commit comments