Skip to content

Commit

Permalink
Remove test for type var in observed type
Browse files Browse the repository at this point in the history
Remove the incorrect test which was asserting that calling
BeanManager.isMatchingEvent with a type variable in the observed type
caused an exception.

This check should only be performed for the event type.
  • Loading branch information
Azquelt committed Jan 26, 2024
1 parent b6d58ac commit 79f0969
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@ public <X> void testEventMatchingTypeVarException() {

assertThrows("Type variable in event type", IllegalArgumentException.class,
() -> getCurrentBeanContainer().isMatchingEvent(varEventType.getType(), Set.of(), MyBean.class, Set.of()));

assertThrows("Type variable in observed event type", IllegalArgumentException.class,
() -> getCurrentBeanContainer().isMatchingEvent(MyBean.class, Set.of(), varEventType.getType(), Set.of()));
}

@Test
Expand Down

0 comments on commit 79f0969

Please sign in to comment.