Skip to content

Commit

Permalink
* Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ag-ramachandran committed Feb 4, 2025
1 parent edf6d2e commit 944834d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,6 @@ public static InputStream resolveInputStream(HttpResponse response, InputStream
}

public static boolean isNullOrEmpty(String str) {
return str!=null && CoreUtils.isNullOrEmpty(str.trim());
return str == null || CoreUtils.isNullOrEmpty(str.trim());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void testStringConversion() {
ConnectionStringBuilder builder = new ConnectionStringBuilder(connectionString);

// Assert that the fields have been set correctly
Assertions.assertEquals("Data Source=mycluster.kusto.windows.net;Application Client Id=myclientid;Application Key=****", builder.toString());
Assertions.assertEquals("Data Source=mycluster.kusto.windows.net;Application Client Id=myclientid;Application Key=myappkey", builder.toString(true));
Assertions.assertEquals("Data Source=mycluster.kusto.windows.net;Application Client Id=myclientid;Application Key=****;", builder.toString());
Assertions.assertEquals("Data Source=mycluster.kusto.windows.net;Application Client Id=myclientid;Application Key=myappkey;", builder.toString(true));
}
}

0 comments on commit 944834d

Please sign in to comment.