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.BooleanMessage; 007 import org.kuali.student.common.messagebuilder.booleanmessage.ast.BooleanMessageImpl; 008 009 public class BooleanMessageImplTest { 010 011 @Test 012 public void testBooleanMessage() throws Exception { 013 BooleanMessage bm = new BooleanMessageImpl("123456", Boolean.FALSE, "A is true"); 014 015 Assert.assertEquals("123456", bm.getMessageId()); 016 Assert.assertFalse(bm.isSuccesful()); 017 Assert.assertEquals("A is true", bm.getMessage()); 018 } 019 }