@Test
@ReplaceHudsonHomeWithCurrentPath("jobs/project1/disk-usage.xml")
@LocalData
public void testCheckWorkspacesBuildsWithoutLoadingBuilds() throws IOException, InterruptedException {
AbstractProject project = (AbstractProject) j.jenkins.getItem("project1");
int loadedBuildsSize = project._getRuns().getLoadedBuilds().size();
DiskUsageProperty property = (DiskUsageProperty) project.getProperty(DiskUsageProperty.class);
FilePath f = j.jenkins.getWorkspaceFor((TopLevelItem)project);
property.checkWorkspaces();
assertEquals("Workspace should have size 4096", 4096, property.getAllWorkspaceSize(), 0);
assertEquals("No build should be loaded.", loadedBuildsSize, project._getRuns().getLoadedBuilds().size(), 0);
}