Package org.springmodules.xt.test.domain

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


    /**
     * Test of single specification composition.
     */
    public void testCompose() {
        OfficeIdSpecification spec = new OfficeIdSpecification();
        IOffice office1 = new Office();
       
        office1.setOfficeId("o1");
        assertTrue(this.compositeSpecification.compose(spec).evaluate(office1));
       
View Full Code Here


    /**
     * 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

   
    /**
     * 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();
View Full Code Here

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

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

   
    /**
     * Test info notifications.
     */
    public void testWithInfoMessage() {
        OfficeIdSpecification spec1 = new OfficeIdSpecification();
        AvailableOfficeSpecification spec2 = new AvailableOfficeSpecification();
       
        IOffice office1 = new Office();
        IEmployee emp1 = new Employee();
       
View Full Code Here

TOP

Related Classes of org.springmodules.xt.test.domain.OfficeIdSpecification

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.