Skip to content

Commit

Permalink
XWIKI-21880: Cannot delete user defined filters
Browse files Browse the repository at this point in the history
  * Small test improvment
  • Loading branch information
surli committed Feb 13, 2024
1 parent e8b7061 commit 74775da
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.internal.util.collections.Sets;
import org.xwiki.component.manager.ComponentManager;
import org.xwiki.model.reference.DocumentReference;
import org.xwiki.model.reference.WikiReference;
import org.xwiki.notifications.NotificationException;
import org.xwiki.notifications.filters.NotificationFilter;
import org.xwiki.notifications.filters.NotificationFilterPreference;
import org.xwiki.notifications.filters.NotificationFilterPreferenceProvider;
import org.xwiki.notifications.filters.NotificationFilterType;
import org.xwiki.test.annotation.BeforeComponent;
import org.xwiki.test.junit5.mockito.ComponentTest;
import org.xwiki.test.junit5.mockito.InjectComponentManager;
import org.xwiki.test.junit5.mockito.InjectMockComponents;
Expand Down Expand Up @@ -72,12 +70,6 @@ public class DefaultNotificationFilterPreferenceManagerTest
@InjectComponentManager
private MockitoComponentManager componentManager;

@BeforeComponent
void beforeComponent() throws Exception
{
this.componentManager.registerComponent(ComponentManager.class, this.componentManager);
}

@BeforeEach
public void setUp() throws Exception
{
Expand Down

0 comments on commit 74775da

Please sign in to comment.