DATACMNS-1744 - Drop the use of the term white list.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user