if (totalEstimatedExportSize > getLocalDiskAvailable()) { return ResultBuilder.createUserErrorResult( "Estimated logs size will exceed the available disk space on the locator.");
doReturn(testResults2).when(spyCmd) .estimateLogSize(Matchers.any(SizeExportLogsFunction.Args.class), eq(member2)); doReturn(10 * MEGABYTE).when(spyCmd).getLocalDiskAvailable();
doReturn(testResults2).when(spyCmd) .estimateLogSize(Matchers.any(SizeExportLogsFunction.Args.class), eq(member2)); doReturn(GIGABYTE).when(spyCmd).getLocalDiskAvailable();