/*
 * This file was automatically generated by EvoSuite
 * Wed Sep 19 22:18:15 GMT 2018
 */

package uk.ac.sanger.artemis.components.genebuilder.cv;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.awt.Dimension;
import javax.swing.ImageIcon;
import javax.swing.JInternalFrame;
import javax.swing.JRadioButton;
import javax.swing.plaf.basic.BasicButtonUI;
import javax.swing.plaf.metal.MetalPopupMenuSeparatorUI;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.components.genebuilder.cv.WrapTextArea;

@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = false, useJEE = true) 
public class WrapTextArea_ESTest extends WrapTextArea_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      Dimension dimension0 = new Dimension();
      WrapTextArea wrapTextArea0 = new WrapTextArea("lbj|'&/v", dimension0, 44);
      assertFalse(wrapTextArea0.isFocusTraversalPolicySet());
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      Dimension dimension0 = new Dimension();
      WrapTextArea wrapTextArea0 = new WrapTextArea("( ", dimension0, 0);
      int int0 = wrapTextArea0.getLabelWidth();
      assertEquals(0, int0);
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      Dimension dimension0 = new Dimension((-1716), (-1716));
      WrapTextArea wrapTextArea0 = new WrapTextArea("", dimension0, 0);
      int int0 = wrapTextArea0.getLabelWidth();
      assertEquals((-1716), int0);
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      MetalPopupMenuSeparatorUI metalPopupMenuSeparatorUI0 = new MetalPopupMenuSeparatorUI();
      JInternalFrame jInternalFrame0 = new JInternalFrame();
      Dimension dimension0 = metalPopupMenuSeparatorUI0.getPreferredSize(jInternalFrame0);
      WrapTextArea wrapTextArea0 = null;
      try {
        wrapTextArea0 = new WrapTextArea((String) null, dimension0, 4);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("java.util.StringTokenizer", e);
      }
  }

  @Test(timeout = 4000)
  public void test4()  throws Throwable  {
      WrapTextArea wrapTextArea0 = new WrapTextArea("U@k;php4!X9", (Dimension) null, 8880);
      assertFalse(wrapTextArea0.isFocusCycleRoot());
  }

  @Test(timeout = 4000)
  public void test5()  throws Throwable  {
      BasicButtonUI basicButtonUI0 = new BasicButtonUI();
      ImageIcon imageIcon0 = new ImageIcon(" \t\n\f\r", "6Y<0K3jeP`R|EW)cJ#");
      JRadioButton jRadioButton0 = new JRadioButton(imageIcon0);
      Dimension dimension0 = basicButtonUI0.getMaximumSize(jRadioButton0);
      WrapTextArea wrapTextArea0 = new WrapTextArea(" \t\n\f\r", dimension0, (-284));
      int int0 = wrapTextArea0.getLabelWidth();
      assertEquals(10, int0);
  }
}
