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.BooleanMessage;
7   import org.kuali.student.common.messagebuilder.booleanmessage.ast.BooleanMessageImpl;
8   
9   public class BooleanMessageImplTest {
10  
11  	@Test
12  	public void testBooleanMessage() throws Exception {
13  		BooleanMessage bm = new BooleanMessageImpl("123456", Boolean.FALSE, "A is true");
14  
15  		Assert.assertEquals("123456", bm.getMessageId());
16  		Assert.assertFalse(bm.isSuccesful());
17  		Assert.assertEquals("A is true", bm.getMessage());
18  	}
19  }