Exemplo n.º 1
0
  @Test
  public void shouldNotContainFilteredProperties() throws Exception {
    final String[] filteredProps = this.foreignKey.getPropertyNames(getTransaction());
    final Filter[] filters = this.foreignKey.getFilters();

    for (final String name : filteredProps) {
      for (final Filter filter : filters) {
        assertThat(filter.rejectProperty(name), is(false));
      }
    }
  }
  @Test
  public void shouldNotContainFilteredProperties() throws Exception {
    final String[] filteredProps = this.uniqueConstraint.getPropertyNames(this.uow);
    final Filter[] filters = this.uniqueConstraint.getFilters();

    for (final String name : filteredProps) {
      for (final Filter filter : filters) {
        assertThat(filter.rejectProperty(name), is(false));
      }
    }
  }