Skip to content

Commit

Permalink
updated tests due to side effects from previous commits
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlippert committed Jul 16, 2024
1 parent 1304d81 commit 3ff0b11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void testBeansNameAndTypeFromBeanAnnotatedMethod() throws Exception {
List<Bean> beans = result.get(5, TimeUnit.SECONDS);

assertNotNull(beans);
assertEquals(14, beans.size());
assertEquals(17, beans.size());
}

@Test
Expand All @@ -98,7 +98,7 @@ void testMatchingBeansForObject() throws Exception {
List<Bean> beans = result.get(5, TimeUnit.SECONDS);

assertNotNull(beans);
assertEquals(13, beans.size());
assertEquals(16, beans.size());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void testUpdateNotificationAfterProjectCreation() {
@Test
void testDeleteProject() throws Exception {
Bean[] beans = springIndex.getBeansOfProject("test-spring-indexing");
assertEquals(14, beans.length);
assertEquals(17, beans.length);

CompletableFuture<Void> deleteProject = indexer.deleteProject(project);
deleteProject.get(5, TimeUnit.SECONDS);
Expand All @@ -92,7 +92,7 @@ void testRemoveSymbolsFromDeletedDocument() throws Exception {
String deletedDocURI = directory.toPath().resolve("src/main/java/org/test/injections/ConstructorInjectionService.java").toUri().toString();

Bean[] allBeansOfProject = springIndex.getBeansOfProject("test-spring-indexing");
assertEquals(14, allBeansOfProject.length);
assertEquals(17, allBeansOfProject.length);

Bean[] beans = springIndex.getBeansOfDocument(deletedDocURI);
assertEquals(1, beans.length);
Expand Down

0 comments on commit 3ff0b11

Please sign in to comment.