Package tyrelion.tests

Source Code of tyrelion.tests.InfoboxTest

/**
*
*/
package tyrelion.tests;


import static org.junit.Assert.assertFalse;

import java.util.ArrayList;

import junit.framework.JUnit4TestAdapter;

import org.junit.Before;
import org.junit.Test;

import tyrelion.gui.Infobox;
import tyrelion.gui.Message;

/**
* @author imladriel
*
*/
public class InfoboxTest {

  Infobox infobox;
  /**
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    infobox = new Infobox(null);
  }
 
  @Test
  public void testInfobox() {
   
    infobox.print("Test String");
   
    ArrayList<Message> messages = infobox.getMessages();
   
    assertFalse(messages.isEmpty());   
  }
 
  public static junit.framework.Test suite() {
    return new JUnit4TestAdapter(InfoboxTest.class);
  }
 
}
TOP

Related Classes of tyrelion.tests.InfoboxTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.