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

package uk.ac.sanger.artemis.components;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.awt.Color;
import java.awt.SystemColor;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.testdata.EvoSuiteFile;
import org.evosuite.runtime.testdata.FileSystemHandling;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.components.Plot;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      Color color0 = Color.BLACK;
      float[] floatArray0 = new float[7];
      floatArray0[0] = 1.5F;
      floatArray0[1] = 1.0F;
      FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);
      floatArray0[2] = (-1.0F);
      floatArray0[3] = (-627.616F);
      floatArray0[4] = 0.426F;
      FileSystemHandling.createFolder((EvoSuiteFile) null);
      floatArray0[5] = 0.0F;
      floatArray0[6] = 1229.5598F;
      color0.getRGBColorComponents(floatArray0);
      Plot.makeColours(color0, 100000);
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      SystemColor systemColor0 = SystemColor.activeCaptionText;
      float[] floatArray0 = new float[5];
      floatArray0[0] = 0.0F;
      floatArray0[1] = (-2123.432F);
      floatArray0[2] = 187.4F;
      floatArray0[3] = (-1424.5F);
      floatArray0[4] = (-1.0F);
      systemColor0.getRGBComponents(floatArray0);
      // Undeclared exception!
      try { 
        Plot.makeColours(systemColor0, (-5282));
        fail("Expecting exception: NegativeArraySizeException");
      
      } catch(NegativeArraySizeException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.Plot", e);
      }
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      // Undeclared exception!
      try { 
        Plot.makeColours((Color) null, 2679);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("uk.ac.sanger.artemis.components.Plot", e);
      }
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      Color color0 = Color.BLACK;
      Color[] colorArray0 = Plot.makeColours(color0, 3080);
      assertEquals(3080, colorArray0.length);
  }
}
