Example #1
0
 @Test
 public void createsMissingStateByDefault() {
   SyncState state = new SyncState();
   assertThat(state.isExisting(), is(false));
   assertThat(state.getMtime(), is(nullValue()));
   assertThat(state.getSize(), is(nullValue()));
 }
Example #2
0
 @Test
 public void providesValues() {
   SyncState state = new SyncState(true, 10L, 20L);
   assertThat(state.isExisting(), is(true));
   assertThat(state.getMtime(), is(10L));
   assertThat(state.getSize(), is(20L));
 }
Example #3
0
 private void assertUnequal(SyncState actual, SyncState expected) {
   assertThat(actual, is(not(equalTo(expected))));
   assertThat(actual.hashCode(), is(not(equalTo(expected.hashCode()))));
 }