コード例 #1
0
  @Test
  public void givenDateMetadataWhenCheckingIsValidForThenReturnTrue() {

    IsEqualCriterion criterion = new IsEqualCriterion(aDateTime());

    assertThat(criterion.isValidFor(dateMetadata)).isTrue();
  }
コード例 #2
0
  @Test
  public void givenContentMetadataWhenCheckingIsValidForThenReturnTrue() {

    IsEqualCriterion criterion = new IsEqualCriterion(aString());

    assertThat(criterion.isValidFor(contentMetadata)).isTrue();
  }
コード例 #3
0
  @Test
  public void givenReferenceMetadataWhenCheckingIsValidForThenReturnTrue() {

    IsEqualCriterion criterion = new IsEqualCriterion(anInteger());

    assertThat(criterion.isValidFor(referenceMetadata)).isTrue();
  }