anmolanmol1234 commented on code in PR #7061:
URL: https://github.com/apache/hadoop/pull/7061#discussion_r1771172078
##########
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/ITestAbfsClient.java:
##########
@@ -685,4 +692,69 @@ public void testExpectHundredContinue() throws Exception {
.describedAs("The expect header is not false")
.isFalse();
}
+
+ @Test
+ public void testTimerNotInitialize() throws Exception {
+ // Create an AzureBlobFileSystem instance.
+ final Configuration configuration = getRawConfiguration();
+ AbfsConfiguration abfsConfiguration = new AbfsConfiguration(configuration,
ACCOUNT_NAME);
+
+ AbfsCounters abfsCounters = Mockito.spy(new AbfsCountersImpl(new
URI("abcd")));
+ AbfsClientContext abfsClientContext = new
AbfsClientContextBuilder().withAbfsCounters(abfsCounters).build();
+
+ // Get an instance of AbfsClient.
+ AbfsClient client = new AbfsDfsClient(new URL("https://azure.com"),
Review Comment:
abstract class instantiated, there are methods such as getMockAbfsClient and
others in ITestAbfsClient class that can help to get an object
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]