*/
public class SpelNodePropertyInclusionPolicyTest extends SpelInclusionPolicyTest {
@Test
public void shouldIncludeCorrectProps() {
NodePropertyInclusionPolicy policy1 = new SpelNodePropertyInclusionPolicy("key != 'name'");
NodePropertyInclusionPolicy policy2 = new SpelNodePropertyInclusionPolicy("node.hasLabel('Employee') && key == 'name'");
try (Transaction tx = database.beginTx()) {
assertFalse(policy1.include("name", michal()));
assertFalse(policy1.include("name", vojta()));
assertTrue(policy2.include("name", michal()));
assertFalse(policy2.include("name", vojta()));
assertFalse(policy2.include("name", graphaware()));
tx.success();
}
}