Skip to content

Commit 7254945

Browse files
committed
Refactor tests
1 parent a09db93 commit 7254945

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

databricks-sdk-java/src/test/java/com/databricks/sdk/core/oauth/FileIDTokenSourceTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ void testGetIDToken(
4848
Path tokenFile = tempDir.resolve("token.txt");
4949
Files.write(tokenFile, fileContent.getBytes(StandardCharsets.UTF_8));
5050

51-
String filePathToRead = null;
51+
String testPathToRead = null;
5252
// If fileToReadFrom is null, we want to simulate passing a null path to FileIDTokenSource (for
5353
// error cases).
5454
// If fileToReadFrom is an empty string, we want to simulate passing an empty path (also for
5555
// error cases).
5656
// Otherwise, resolve the file name relative to the temp directory to get the full path.
5757
if (fileToReadFrom != null) {
5858
if (fileToReadFrom.equals("")) {
59-
filePathToRead = "";
59+
testPathToRead = "";
6060
} else {
61-
filePathToRead = tempDir.resolve(fileToReadFrom).toString();
61+
testPathToRead = tempDir.resolve(fileToReadFrom).toString();
6262
}
6363
}
6464

65-
FileIDTokenSource source = new FileIDTokenSource(filePathToRead);
65+
FileIDTokenSource source = new FileIDTokenSource(testPathToRead);
6666

6767
if (expectedException != null) {
6868
assertThrows(expectedException, () -> source.getIDToken(TEST_AUDIENCE));

0 commit comments

Comments
 (0)