Examples of AvailableOfficeSpecification


Examples of org.springmodules.xt.test.domain.AvailableOfficeSpecification

    /**
     * Test of evaluate method, of class org.springmodules.xt.model.specifications.adapter.PredicateCompositeAdapter.
     */
    public void testEvaluate() {
        AvailableOfficeSpecification spec = new AvailableOfficeSpecification();
        CompositeSpecification<BaseSpecification, IOffice> composite = new CompositeSpecificationImpl<BaseSpecification, IOffice>(BaseSpecification.class, "isSatisfiedBy");
        PredicateCompositeAdapter adapter = new PredicateCompositeAdapter(composite);
       
        IOffice office1 = new Office();
        IEmployee emp1 = new Employee();
View Full Code Here

Examples of org.springmodules.xt.test.domain.AvailableOfficeSpecification

    /**
     * Test of evaluate method, of class org.springmodules.xt.model.specifications.adapter.PredicateGenericAdapter.
     */
    public void testEvaluate() {
        AvailableOfficeSpecification spec = new AvailableOfficeSpecification();
        PredicateGenericAdapter adapter = new PredicateGenericAdapter(spec, "isSatisfiedBy");
       
        IOffice office1 = new Office();
        IEmployee emp1 = new Employee();
       
        office1.setOfficeId("o1");
        emp1.setMatriculationCode("1");
        office1.addEmployee(emp1);
       
        assertTrue(spec.isSatisfiedBy(office1));
        assertTrue(adapter.evaluate(office1));
    }
View Full Code Here

Examples of org.springmodules.xt.test.domain.AvailableOfficeSpecification

    /**
     * Test of "and" logical operator.
     */
    public void testAnd() {
        OfficeIdSpecification spec1 = new OfficeIdSpecification();
        AvailableOfficeSpecification spec2 = new AvailableOfficeSpecification();
        FullOfficeSpecification spec3 = new FullOfficeSpecification();
       
        IOffice office1 = new Office();
        IEmployee emp1 = new Employee();
       
View Full Code Here

Examples of org.springmodules.xt.test.domain.AvailableOfficeSpecification

    /**
     * Test of "or" logical operator.
     */
    public void testOr() {
        FullOfficeSpecification spec1 = new FullOfficeSpecification();
        AvailableOfficeSpecification spec2 = new AvailableOfficeSpecification();
       
        IOffice office1 = new Office();
        IEmployee emp1 = new Employee();
       
        office1.setOfficeId("o1");
View Full Code Here

Examples of org.springmodules.xt.test.domain.AvailableOfficeSpecification

     * Test of "and not" logical operator.
     */
    public void testAndNot() {
        OfficeIdSpecification spec1 = new OfficeIdSpecification();
        FullOfficeSpecification spec2 = new FullOfficeSpecification();
        AvailableOfficeSpecification spec3 = new AvailableOfficeSpecification();
       
        IOffice office1 = new Office();
        IEmployee emp1 = new Employee();
       
        office1.setOfficeId("o1");
View Full Code Here

Examples of org.springmodules.xt.test.domain.AvailableOfficeSpecification

    /**
     * Test error notifications.
     */
    public void testWithErrorMessage() {
        OfficeIdSpecification spec1 = new OfficeIdSpecification();
        AvailableOfficeSpecification spec2 = new AvailableOfficeSpecification();
       
        IOffice office1 = new Office();
        IEmployee emp1 = new Employee();
       
        office1.setOfficeId("aaa");
View Full Code Here

Examples of org.springmodules.xt.test.domain.AvailableOfficeSpecification

    /**
     * Test warning notifications.
     */
    public void testWithWarningMessage() {
        OfficeIdSpecification spec1 = new OfficeIdSpecification();
        AvailableOfficeSpecification spec2 = new AvailableOfficeSpecification();
       
        IOffice office1 = new Office();
        IEmployee emp1 = new Employee();
       
        office1.setOfficeId("aaa");
View Full Code Here

Examples of org.springmodules.xt.test.domain.AvailableOfficeSpecification

    /**
     * Test info notifications.
     */
    public void testWithInfoMessage() {
        OfficeIdSpecification spec1 = new OfficeIdSpecification();
        AvailableOfficeSpecification spec2 = new AvailableOfficeSpecification();
       
        IOffice office1 = new Office();
        IEmployee emp1 = new Employee();
       
        office1.setOfficeId("o1");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.