1 /* 2 * This file was automatically generated by EvoSuite 3 * Fri Jan 12 12:55:08 GMT 2018 4 */ 5 6 package uk.ac.sanger.artemis.components; 7 8 import org.junit.Test; 9 import static org.junit.Assert.*; 10 import static org.evosuite.runtime.EvoAssertions.*; 11 import java.awt.Color; 12 import java.awt.SystemColor; 13 import org.evosuite.runtime.EvoRunner; 14 import org.evosuite.runtime.EvoRunnerParameters; 15 import org.junit.runner.RunWith; 16 import uk.ac.sanger.artemis.Feature; 17 import uk.ac.sanger.artemis.components.FeaturePlot; 18 import uk.ac.sanger.artemis.components.Plot; 19 import uk.ac.sanger.artemis.io.Key; 20 import uk.ac.sanger.artemis.io.Location; 21 import uk.ac.sanger.artemis.io.MSPcrunchStreamFeature; 22 import uk.ac.sanger.artemis.io.QualifierVector; 23 import uk.ac.sanger.artemis.plot.CoilFeatureAlgorithm; 24 import uk.ac.sanger.artemis.plot.HydrophilicityAlgorithm; 25 26 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true) 27 public class Plot_ESTest extends Plot_ESTest_scaffolding { 28 29 @Test(timeout = 4000) test0()30 public void test0() throws Throwable { 31 SystemColor systemColor0 = SystemColor.menu; 32 Plot.makeColours(systemColor0, 0); 33 } 34 35 @Test(timeout = 4000) test1()36 public void test1() throws Throwable { 37 // Undeclared exception! 38 try { 39 Plot.makeColours((Color) null, 2); 40 fail("Expecting exception: NullPointerException"); 41 42 } catch(NullPointerException e) { 43 // 44 // no message in exception (getMessage() returned null) 45 // 46 verifyException("uk.ac.sanger.artemis.components.Plot", e); 47 } 48 } 49 50 @Test(timeout = 4000) test2()51 public void test2() throws Throwable { 52 Color color0 = Color.RED; 53 // Undeclared exception! 54 try { 55 Plot.makeColours(color0, (-177)); 56 fail("Expecting exception: NegativeArraySizeException"); 57 58 } catch(NegativeArraySizeException e) { 59 // 60 // no message in exception (getMessage() returned null) 61 // 62 verifyException("uk.ac.sanger.artemis.components.Plot", e); 63 } 64 } 65 66 @Test(timeout = 4000) test3()67 public void test3() throws Throwable { 68 Color color0 = new Color(0, 255, 0); 69 Plot.makeColours(color0, 255); 70 } 71 72 @Test(timeout = 4000) test4()73 public void test4() throws Throwable { 74 Color color0 = Color.blue; 75 Color[] colorArray0 = Plot.makeColours(color0, 1175); 76 assertNotNull(colorArray0); 77 } 78 79 @Test(timeout = 4000) test5()80 public void test5() throws Throwable { 81 CoilFeatureAlgorithm coilFeatureAlgorithm0 = new CoilFeatureAlgorithm((Feature) null); 82 FeaturePlot featurePlot0 = null; 83 try { 84 featurePlot0 = new FeaturePlot(coilFeatureAlgorithm0); 85 fail("Expecting exception: NullPointerException"); 86 87 } catch(NullPointerException e) { 88 // 89 // no message in exception (getMessage() returned null) 90 // 91 verifyException("uk.ac.sanger.artemis.components.FeaturePlot", e); 92 } 93 } 94 95 @Test(timeout = 4000) test6()96 public void test6() throws Throwable { 97 Key key0 = new Key(""); 98 QualifierVector qualifierVector0 = new QualifierVector(); 99 MSPcrunchStreamFeature mSPcrunchStreamFeature0 = new MSPcrunchStreamFeature(key0, (Location) null, qualifierVector0); 100 Feature feature0 = new Feature(mSPcrunchStreamFeature0); 101 HydrophilicityAlgorithm hydrophilicityAlgorithm0 = new HydrophilicityAlgorithm(feature0); 102 FeaturePlot featurePlot0 = new FeaturePlot(hydrophilicityAlgorithm0); 103 featurePlot0.calculateFeatures(true); 104 } 105 } 106