|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BooleanFunctionResultTest | Line # 8 | 4 | 0% | 1 | 0 | 100% |
1.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
(1) | |||
Result | |||
1.0
|
org.kuali.student.common.messagebuilder.booleanmessage.ast.BooleanFunctionResultTest.testBooleanFunctionResult org.kuali.student.common.messagebuilder.booleanmessage.ast.BooleanFunctionResultTest.testBooleanFunctionResult | 1 PASS | |
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 | 1 | @Test |
11 | public void testBooleanFunctionResult() throws Exception { | |
12 | 1 | BooleanFunctionResult bfr = new BooleanFunctionResult("A*B", Boolean.TRUE, "A and B are true"); |
13 | ||
14 | 1 | Assert.assertEquals("A*B", bfr.getBooleanFunction()); |
15 | 1 | Assert.assertEquals(Boolean.TRUE, bfr.getResult()); |
16 | 1 | Assert.assertEquals("A and B are true", bfr.getMessage()); |
17 | } | |
18 | } |
|