@Test public void makeSubsequentChange() throws Exception { when(sanskrit.getLong("mutativeMessageCount")).thenReturn(10L); runChangeTest(11L); }
private Long getLong(String key) { try { return sanskrit.getLong(key); } catch (SanskritException e) { throw new RuntimeException(e); } }
SanskritNomadServerState implements NomadServerState<NodeContext> { private Long getLong(String key) { try { return sanskrit.getLong(key); } catch (SanskritException e) { throw new RuntimeException(e); } } }
SanskritNomadServerState implements NomadServerState<NodeContext> { private Long getLong(String key) { try { return sanskrit.getLong(key); } catch (SanskritException e) { throw new RuntimeException(e); } } SanskritNomadServerState(Sanskrit sanskrit, ConfigStorage configStorage, HashComputer hashComputer); }
SanskritNomadServerState implements NomadServerState<NodeContext> { private Long getLong(String key) { try { return sanskrit.getLong(key); } catch (SanskritException e) { throw new RuntimeException(e); } } SanskritNomadServerState(Sanskrit sanskrit, ConfigStorage configStorage, HashComputer hashComputer); @Override boolean isInitialized(); @Override NomadServerMode getMode(); @Override long getMutativeMessageCount(); @Override String getLastMutationHost(); @Override String getLastMutationUser(); @Override Instant getLastMutationTimestamp(); @Override UUID getLatestChangeUuid(); @Override long getCurrentVersion(); @Override long getHighestVersion(); @Override ChangeRequest<NodeContext> getChangeRequest(UUID changeUuid); @Override NomadStateChange<NodeContext> newStateChange(); @Override void applyStateChange(NomadStateChange<NodeContext> change); @Override Optional<NodeContext> getCurrentCommittedConfig(); @Override void reset(); }
SanskritNomadServerState implements NomadServerState<NodeContext> { private Long getLong(String key) { try { return sanskrit.getLong(key); } catch (SanskritException e) { throw new RuntimeException(e); } } SanskritNomadServerState(Sanskrit sanskrit, ConfigStorage configStorage, HashComputer hashComputer); @Override boolean isInitialized(); @Override NomadServerMode getMode(); @Override long getMutativeMessageCount(); @Override String getLastMutationHost(); @Override String getLastMutationUser(); @Override Instant getLastMutationTimestamp(); @Override UUID getLatestChangeUuid(); @Override long getCurrentVersion(); @Override long getHighestVersion(); @Override ChangeRequest<NodeContext> getChangeRequest(UUID changeUuid); @Override NomadStateChange<NodeContext> newStateChange(); @Override void applyStateChange(NomadStateChange<NodeContext> change); @Override Optional<NodeContext> getCurrentCommittedConfig(); @Override void reset();  }