DATACMNS-1744 - Drop the use of the term white list.

This commit is contained in:
Mark Paluch
2020-06-15 12:08:52 +02:00
parent e7f235e47a
commit f93a66fdbc
2 changed files with 29 additions and 28 deletions

View File

@@ -38,6 +38,7 @@ import com.querydsl.core.types.dsl.StringPath;
*
* @author Oliver Gierke
* @author Christoph Strobl
* @author Mark Paluch
*/
class QuerydslBindingsUnitTests {
@@ -145,8 +146,8 @@ class QuerydslBindingsUnitTests {
assertThat(bindings.isPathAvailable("firstname", User.class)).isTrue();
}
@Test // DATACMNS-669
void pathIsAvailableIfItsBothBlackAndWhitelisted() {
@Test // DATACMNS-669, DATACMNS-1744
void pathIsAvailableIfItsBothDeniedAndAllowed() {
bindings.excluding(QUser.user.firstname);
bindings.including(QUser.user.firstname);
@@ -180,8 +181,8 @@ class QuerydslBindingsUnitTests {
assertThat(bindings.isPathAvailable("address.street", User.class)).isFalse();
}
@Test // DATACMNS-669
void whitelistsPropertiesCorrectly() {
@Test // DATACMNS-669, DATACMNS-1744
void allowsPropertiesCorrectly() {
bindings.including(QUser.user.firstname, QUser.user.address.street);
@@ -211,7 +212,7 @@ class QuerydslBindingsUnitTests {
assertThat(path).isNotNull();
assertThat(bindings.isPathAvailable("city", User.class)).isTrue();
// Aliasing implicitly blacklists original path
// Aliasing implicitly denies original path
assertThat(bindings.isPathAvailable("address.city", User.class)).isFalse();
}