001    package org.kuali.student.common.messagebuilder.booleanmessage.ast;
002    
003    import junit.framework.Assert;
004    
005    import org.junit.Test;
006    import org.kuali.student.common.messagebuilder.booleanmessage.ast.BooleanFunctionResult;
007    
008    public class BooleanFunctionResultTest {
009    
010            @Test
011            public void testBooleanFunctionResult() throws Exception {
012                    BooleanFunctionResult bfr = new BooleanFunctionResult("A*B", Boolean.TRUE, "A and B are true");
013    
014                    Assert.assertEquals("A*B", bfr.getBooleanFunction());
015                    Assert.assertEquals(Boolean.TRUE, bfr.getResult());
016                    Assert.assertEquals("A and B are true", bfr.getMessage());
017            }
018    }