Package hu.sztaki.ilab.longneck.process.constraint

Examples of hu.sztaki.ilab.longneck.process.constraint.NotNullConstraint


        }       
    }
   
    @Test
    public void testVariableAccessDefinedVariable() {
        NotNullConstraint c = new NotNullConstraint();
        c.setApplyTo(Arrays.asList(new String[] { "$a1" }));
       
        VariableSpace scope = new VariableSpace();
        scope.setVariable("a1", "aaa");
        Record r = new RecordImpl();
       
        c.check(r, scope);
        CheckResult res = c.check(r, scope);
        Assert.assertTrue(res.isPassed());
    }
View Full Code Here


        Assert.assertTrue(res.isPassed());
    }
   
    @Test
    public void testVariableAccessUndefinedVariable() {
        NotNullConstraint c = new NotNullConstraint();
        c.setApplyTo(Arrays.asList(new String[] { "$a1" }));
       
        VariableSpace scope = new VariableSpace();
        Record r = new RecordImpl();

        CheckResult res = c.check(r, scope);
        Assert.assertFalse(res.isPassed());
    }
View Full Code Here

TOP

Related Classes of hu.sztaki.ilab.longneck.process.constraint.NotNullConstraint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.