View Javadoc

1   package org.kuali.student.common.messagebuilder.booleanmessage.ast;
2   
3   import junit.framework.Assert;
4   
5   import org.junit.Test;
6   import org.kuali.student.common.messagebuilder.booleanmessage.ast.BooleanFunctionResult;
7   
8   public class BooleanFunctionResultTest {
9   
10  	@Test
11  	public void testBooleanFunctionResult() throws Exception {
12  		BooleanFunctionResult bfr = new BooleanFunctionResult("A*B", Boolean.TRUE, "A and B are true");
13  
14  		Assert.assertEquals("A*B", bfr.getBooleanFunction());
15  		Assert.assertEquals(Boolean.TRUE, bfr.getResult());
16  		Assert.assertEquals("A and B are true", bfr.getMessage());
17  	}
18  }