1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-17 09:41:08 +01:00

Add tests for SelectUserId

This commit is contained in:
Paul Schaub 2021-02-07 03:12:59 +01:00
parent ab39f0e2f3
commit ebf46fa05e
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 133 additions and 0 deletions

View file

@ -118,4 +118,13 @@ public abstract class SelectUserId {
}
};
}
public static SelectUserId not(SelectUserId strategy) {
return new SelectUserId() {
@Override
protected boolean accept(String userId) {
return !strategy.accept(userId);
}
};
}
}