ObservationManagerFacade implements ObservationManager { @Override public EventJournal getEventJournal() throws RepositoryException { return delegate.getEventJournal(); } ObservationManagerFacade(final @NotNull ObservationManager delegate); @Override EventListenerIterator getRegisteredEventListeners(); @Override EventJournal getEventJournal(); @Override EventJournal getEventJournal(int eventTypes, String absPath, boolean isDeep,
                                        String[] uuid, String[] nodeTypeName); @Override void setUserData(String userData); @Override void addEventListener(EventListener listener, int eventTypes, String absPath,
                                 boolean isDeep, String[] uuid, String[] nodeTypeName,
                                 boolean noLocal); @Override void removeEventListener(EventListener listener);  }
@Test public void testGetEventJournal() throws Exception { ObservationManager delegate = mock(ObservationManager.class); ObservationManagerFacade facade = getFacade(delegate); final EventJournal value = mock(EventJournal.class); when(delegate.getEventJournal()).thenReturn(value); assertSame("same value", value, facade.getEventJournal()); }
@Test public void testGetEventJournalArgs() throws Exception { ObservationManager delegate = mock(ObservationManager.class); ObservationManagerFacade facade = getFacade(delegate); final EventJournal value = mock(EventJournal.class); when(delegate.getEventJournal(1, "", true, null, null)).thenReturn(value); assertSame("same value", value, facade.getEventJournal(1, "", true, null, null)); }