void () { MavenRepositoryInfo localRepo = new MavenRepositoryInfo(LOCAL_REPOSITORY_ID, "/home/user/.m2/repository", IndexKind.LOCAL); localDiff = MavenIndices.getLocalDiff(localRepo, myContext, null); Assert.assertNotNull(localDiff.newIndices); Assert.assertEquals(localRepo.getUrl(), localDiff.newIndices.getRepositoryPathOrUrl()); Assert.assertNull(localDiff.oldIndices); localDiff = MavenIndices.getLocalDiff(localRepo, myContext, localDiff.newIndices); Assert.assertNotNull(localDiff.newIndices); Assert.assertEquals(localRepo.getUrl(), localDiff.newIndices.getRepositoryPathOrUrl()); Assert.assertNull(localDiff.oldIndices); }