@Test @SuppressWarnings("all") public void testWrite() throws Exception { historyFacadeService.write("someServer", Arrays.asList(someGroup), "some event", EventType.SYSTEM_INFO, "someUser"); }
@Override public void write(final String serverName, final Collection<Group> groups, final String historyMessage, final EventType eventType, final String user) { final List<JpaHistory> jpaHistoryList = historyService.createHistory(serverName, new ArrayList<>(groups), historyMessage, eventType, user); for (JpaHistory jpaHistory : jpaHistoryList) { messagingService.send(new Message<>(Message.Type.HISTORY, jpaHistory)); } }
HistoryFacadeServiceImpl implements HistoryFacadeService { @Override public void write(final String serverName, final Collection<Group> groups, final String historyMessage, final EventType eventType, final String user) { final List<JpaHistory> jpaHistoryList = historyService.createHistory(serverName, new ArrayList<>(groups), historyMessage, eventType, user); for (JpaHistory jpaHistory : jpaHistoryList) { messagingService.send(new Message<>(Message.Type.HISTORY, jpaHistory)); } } }
HistoryFacadeServiceImpl implements HistoryFacadeService { @Override public void write(final String serverName, final Collection<Group> groups, final String historyMessage, final EventType eventType, final String user) { final List<JpaHistory> jpaHistoryList = historyService.createHistory(serverName, new ArrayList<>(groups), historyMessage, eventType, user); for (JpaHistory jpaHistory : jpaHistoryList) { messagingService.send(new Message<>(Message.Type.HISTORY, jpaHistory)); } } HistoryFacadeServiceImpl(final HistoryService historyService, final MessagingService messagingService); }
HistoryFacadeServiceImpl implements HistoryFacadeService { @Override public void write(final String serverName, final Collection<Group> groups, final String historyMessage, final EventType eventType, final String user) { final List<JpaHistory> jpaHistoryList = historyService.createHistory(serverName, new ArrayList<>(groups), historyMessage, eventType, user); for (JpaHistory jpaHistory : jpaHistoryList) { messagingService.send(new Message<>(Message.Type.HISTORY, jpaHistory)); } } HistoryFacadeServiceImpl(final HistoryService historyService, final MessagingService messagingService); @Override void write(final String serverName, final Collection<Group> groups, final String historyMessage, final EventType eventType,
                      final String user); @Override @SuppressWarnings("all") void write(final String serverName, final Group group, final String event, final EventType eventType,
                      final String user); }
HistoryFacadeServiceImpl implements HistoryFacadeService { @Override public void write(final String serverName, final Collection<Group> groups, final String historyMessage, final EventType eventType, final String user) { final List<JpaHistory> jpaHistoryList = historyService.createHistory(serverName, new ArrayList<>(groups), historyMessage, eventType, user); for (JpaHistory jpaHistory : jpaHistoryList) { messagingService.send(new Message<>(Message.Type.HISTORY, jpaHistory)); } } HistoryFacadeServiceImpl(final HistoryService historyService, final MessagingService messagingService); @Override void write(final String serverName, final Collection<Group> groups, final String historyMessage, final EventType eventType,
                      final String user); @Override @SuppressWarnings("all") void write(final String serverName, final Group group, final String event, final EventType eventType,
                      final String user);  }