コード例 #1
0
  @Test
  public void readChangesets_is_not_cached() {
    writer.writeComponentChangesets(CHANGESETS);

    assertThat(underTest.readChangesets(COMPONENT_REF))
        .isNotSameAs(underTest.readChangesets(COMPONENT_REF));
  }
コード例 #2
0
  @Test
  public void verify_readChangesets_returns_changesets() {
    writer.writeComponentChangesets(CHANGESETS);

    BatchReport.Changesets res = underTest.readChangesets(COMPONENT_REF);
    assertThat(res).isEqualTo(CHANGESETS);
  }
コード例 #3
0
 @Test
 public void readChangesets_returns_null_if_no_changeset() {
   assertThat(underTest.readChangesets(COMPONENT_REF)).isNull();
 }