1 /*
2  * This file was automatically generated by EvoSuite
3  * Fri Jan 12 13:59:05 GMT 2018
4  */
5 
6 package uk.ac.sanger.artemis;
7 
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
11 import java.io.File;
12 import java.io.IOException;
13 import org.evosuite.runtime.EvoRunner;
14 import org.evosuite.runtime.EvoRunnerParameters;
15 import org.evosuite.runtime.mock.java.io.MockFile;
16 import org.junit.runner.RunWith;
17 import uk.ac.sanger.artemis.Entry;
18 import uk.ac.sanger.artemis.Feature;
19 import uk.ac.sanger.artemis.FeatureChangeEvent;
20 import uk.ac.sanger.artemis.FeatureEnumeration;
21 import uk.ac.sanger.artemis.FeatureVector;
22 import uk.ac.sanger.artemis.FilteredEntryGroup;
23 import uk.ac.sanger.artemis.SimpleEntryGroup;
24 import uk.ac.sanger.artemis.io.BlastEntryInformation;
25 import uk.ac.sanger.artemis.io.EmblDocumentEntry;
26 import uk.ac.sanger.artemis.io.EmblStreamSequence;
27 import uk.ac.sanger.artemis.io.EntryInformation;
28 import uk.ac.sanger.artemis.io.FastaStreamSequence;
29 import uk.ac.sanger.artemis.io.GenbankStreamSequence;
30 import uk.ac.sanger.artemis.io.Key;
31 import uk.ac.sanger.artemis.io.Location;
32 import uk.ac.sanger.artemis.io.MSPcrunchEntryInformation;
33 import uk.ac.sanger.artemis.io.PublicDBDocumentEntry;
34 import uk.ac.sanger.artemis.io.QualifierVector;
35 import uk.ac.sanger.artemis.io.Range;
36 import uk.ac.sanger.artemis.io.RawStreamSequence;
37 import uk.ac.sanger.artemis.io.Sequence;
38 import uk.ac.sanger.artemis.io.SimpleEntryInformation;
39 import uk.ac.sanger.artemis.sequence.Bases;
40 import uk.ac.sanger.artemis.util.Document;
41 
42 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
43 public class Entry_ESTest extends Entry_ESTest_scaffolding {
44 
45   @Test(timeout = 4000)
test00()46   public void test00()  throws Throwable  {
47       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
48       Entry entry0 = simpleEntryGroup0.createEntry();
49       Entry.FeatureEnumerator entry_FeatureEnumerator0 = entry0.new FeatureEnumerator();
50       boolean boolean0 = entry_FeatureEnumerator0.hasMoreFeatures();
51       assertFalse(boolean0);
52   }
53 
54   @Test(timeout = 4000)
test01()55   public void test01()  throws Throwable  {
56       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
57       FeatureVector featureVector0 = new FeatureVector();
58       FilteredEntryGroup filteredEntryGroup0 = new FilteredEntryGroup(simpleEntryGroup0, featureVector0, ".IZP\rhfI_k");
59       Entry entry0 = filteredEntryGroup0.createEntry();
60       Entry.FeatureEnumerator entry_FeatureEnumerator0 = entry0.new FeatureEnumerator();
61       // Undeclared exception!
62       try {
63         entry_FeatureEnumerator0.nextFeature();
64         fail("Expecting exception: NullPointerException");
65 
66       } catch(NullPointerException e) {
67          //
68          // no message in exception (getMessage() returned null)
69          //
70          verifyException("uk.ac.sanger.artemis.Entry", e);
71       }
72   }
73 
74   @Test(timeout = 4000)
test02()75   public void test02()  throws Throwable  {
76       FastaStreamSequence fastaStreamSequence0 = new FastaStreamSequence("");
77       Bases bases0 = new Bases(fastaStreamSequence0);
78       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
79       FeatureVector featureVector0 = new FeatureVector();
80       FilteredEntryGroup filteredEntryGroup0 = new FilteredEntryGroup(simpleEntryGroup0, featureVector0, "");
81       filteredEntryGroup0.createEntry("");
82       // Undeclared exception!
83       try {
84         filteredEntryGroup0.createFeature();
85         fail("Expecting exception: Error");
86 
87       } catch(Error e) {
88          //
89          // internal error - unexpected exception: org.evosuite.runtime.mock.java.lang.MockThrowable: Parse error at this point: java.lang.Integer@0000000031: range bounds must be greater than 0
90          //
91          verifyException("uk.ac.sanger.artemis.Entry", e);
92       }
93   }
94 
95   @Test(timeout = 4000)
test03()96   public void test03()  throws Throwable  {
97       SimpleEntryInformation simpleEntryInformation0 = new SimpleEntryInformation();
98       EmblDocumentEntry emblDocumentEntry0 = new EmblDocumentEntry(simpleEntryInformation0);
99       Entry entry0 = new Entry((Bases) null, emblDocumentEntry0);
100       String string0 = entry0.getName();
101       assertNull(string0);
102   }
103 
104   @Test(timeout = 4000)
test04()105   public void test04()  throws Throwable  {
106       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
107       Entry entry0 = simpleEntryGroup0.createEntry("yyG_%4c>t3kF8xIA");
108       Bases bases0 = entry0.getBases();
109       assertNull(bases0);
110   }
111 
112   @Test(timeout = 4000)
test05()113   public void test05()  throws Throwable  {
114       SimpleEntryInformation simpleEntryInformation0 = new SimpleEntryInformation();
115       EmblDocumentEntry emblDocumentEntry0 = new EmblDocumentEntry(simpleEntryInformation0);
116       Entry entry0 = new Entry((Bases) null, emblDocumentEntry0);
117       try {
118         entry0.setHeaderText("internal error - unexpected exception: ");
119         fail("Expecting exception: IOException");
120 
121       } catch(IOException e) {
122          //
123          // the header must contain only header lines
124          //
125          verifyException("uk.ac.sanger.artemis.io.SimpleDocumentEntry", e);
126       }
127   }
128 
129   @Test(timeout = 4000)
test06()130   public void test06()  throws Throwable  {
131       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
132       Entry entry0 = simpleEntryGroup0.createEntry();
133       // Undeclared exception!
134       try {
135         entry0.saveStandardOnly((File) null, 2, false);
136         fail("Expecting exception: Error");
137 
138       } catch(Error e) {
139          //
140          // internal error - created a null Document
141          //
142          verifyException("uk.ac.sanger.artemis.util.Document", e);
143       }
144   }
145 
146   @Test(timeout = 4000)
test07()147   public void test07()  throws Throwable  {
148       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
149       Entry entry0 = simpleEntryGroup0.createEntry((String) null);
150       // Undeclared exception!
151       try {
152         entry0.saveStandardOnly((-1799));
153         fail("Expecting exception: Error");
154 
155       } catch(Error e) {
156          //
157          // internal error - unknown DocumentEntry type
158          //
159          verifyException("uk.ac.sanger.artemis.io.DocumentEntryFactory", e);
160       }
161   }
162 
163   @Test(timeout = 4000)
test08()164   public void test08()  throws Throwable  {
165       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
166       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
167       Bases bases0 = new Bases(genbankStreamSequence0);
168       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
169       Entry entry0 = simpleEntryGroup0.createEntry("):");
170       // Undeclared exception!
171       try {
172         entry0.save(136);
173         fail("Expecting exception: Error");
174 
175       } catch(Error e) {
176          //
177          // internal error - unknown DocumentEntry type
178          //
179          verifyException("uk.ac.sanger.artemis.io.DocumentEntryFactory", e);
180       }
181   }
182 
183   @Test(timeout = 4000)
test09()184   public void test09()  throws Throwable  {
185       Entry.newEntry((Bases) null);
186       // Undeclared exception!
187       Entry.newEntry((Bases) null);
188   }
189 
190   @Test(timeout = 4000)
test10()191   public void test10()  throws Throwable  {
192       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
193       Entry entry0 = simpleEntryGroup0.createEntry(" is in GTF format");
194       // Undeclared exception!
195       try {
196         entry0.add((Feature) null, false, false);
197         fail("Expecting exception: NullPointerException");
198 
199       } catch(NullPointerException e) {
200          //
201          // no message in exception (getMessage() returned null)
202          //
203          verifyException("uk.ac.sanger.artemis.Entry", e);
204       }
205   }
206 
207   @Test(timeout = 4000)
test11()208   public void test11()  throws Throwable  {
209       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
210       Entry entry0 = simpleEntryGroup0.createEntry();
211       // Undeclared exception!
212       try {
213         entry0.add((Feature) null, true);
214         fail("Expecting exception: NullPointerException");
215 
216       } catch(NullPointerException e) {
217          //
218          // no message in exception (getMessage() returned null)
219          //
220          verifyException("uk.ac.sanger.artemis.Entry", e);
221       }
222   }
223 
224   @Test(timeout = 4000)
test12()225   public void test12()  throws Throwable  {
226       Entry entry0 = null;
227       try {
228         entry0 = new Entry((uk.ac.sanger.artemis.io.Entry) null);
229         fail("Expecting exception: NullPointerException");
230 
231       } catch(NullPointerException e) {
232          //
233          // no message in exception (getMessage() returned null)
234          //
235          verifyException("uk.ac.sanger.artemis.Entry", e);
236       }
237   }
238 
239   @Test(timeout = 4000)
test13()240   public void test13()  throws Throwable  {
241       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
242       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
243       Bases bases0 = new Bases(genbankStreamSequence0);
244       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
245       Entry entry0 = simpleEntryGroup0.createEntry("):");
246       entry0.dispose();
247       assertFalse(entry0.isReadOnly());
248   }
249 
250   @Test(timeout = 4000)
test14()251   public void test14()  throws Throwable  {
252       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("C0<#");
253       Bases bases0 = new Bases(genbankStreamSequence0);
254       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
255       Entry entry0 = simpleEntryGroup0.createEntry();
256       boolean boolean0 = entry0.setName("internal error - unexpected exception: ");
257       assertTrue(boolean0);
258   }
259 
260   @Test(timeout = 4000)
test15()261   public void test15()  throws Throwable  {
262       RawStreamSequence rawStreamSequence0 = new RawStreamSequence("");
263       Bases bases0 = new Bases(rawStreamSequence0);
264       Entry entry0 = Entry.newEntry(bases0);
265       boolean boolean0 = entry0.setName("");
266       assertFalse(boolean0);
267   }
268 
269   @Test(timeout = 4000)
test16()270   public void test16()  throws Throwable  {
271       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
272       Entry entry0 = simpleEntryGroup0.createEntry("");
273       entry0.addEntryChangeListener(simpleEntryGroup0);
274       assertFalse(entry0.isReadOnly());
275   }
276 
277   @Test(timeout = 4000)
test17()278   public void test17()  throws Throwable  {
279       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
280       Entry entry0 = simpleEntryGroup0.createEntry();
281       entry0.removeEntryChangeListener(simpleEntryGroup0);
282       assertEquals(1, simpleEntryGroup0.size());
283   }
284 
285   @Test(timeout = 4000)
test18()286   public void test18()  throws Throwable  {
287       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
288       Entry entry0 = simpleEntryGroup0.createEntry();
289       entry0.removeFeatureChangeListener(simpleEntryGroup0);
290       assertFalse(entry0.isReadOnly());
291   }
292 
293   @Test(timeout = 4000)
test19()294   public void test19()  throws Throwable  {
295       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
296       FilteredEntryGroup filteredEntryGroup0 = new FilteredEntryGroup(simpleEntryGroup0, (FeatureVector) null, "");
297       Entry entry0 = filteredEntryGroup0.createEntry("gvBW9t<{");
298       String string0 = entry0.getName();
299       assertEquals("gvBW9t<{", string0);
300   }
301 
302   @Test(timeout = 4000)
test20()303   public void test20()  throws Throwable  {
304       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
305       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
306       Bases bases0 = new Bases(genbankStreamSequence0);
307       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
308       Entry entry0 = simpleEntryGroup0.createEntry("):");
309       Bases bases1 = entry0.getBases();
310       assertEquals(1, Bases.FORWARD);
311   }
312 
313   @Test(timeout = 4000)
test21()314   public void test21()  throws Throwable  {
315       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
316       Entry entry0 = simpleEntryGroup0.createEntry("");
317       EmblDocumentEntry emblDocumentEntry0 = (EmblDocumentEntry)entry0.getEMBLEntry();
318       assertTrue(PublicDBDocumentEntry.IGNORE_OBSOLETE_FEATURES);
319   }
320 
321   @Test(timeout = 4000)
test22()322   public void test22()  throws Throwable  {
323       Bases bases0 = new Bases((Sequence) null);
324       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
325       Entry entry0 = simpleEntryGroup0.createEntry("w(3hY?]&$O");
326       // Undeclared exception!
327       try {
328         entry0.createFeature();
329         fail("Expecting exception: NullPointerException");
330 
331       } catch(NullPointerException e) {
332          //
333          // no message in exception (getMessage() returned null)
334          //
335          verifyException("uk.ac.sanger.artemis.sequence.Bases", e);
336       }
337   }
338 
339   @Test(timeout = 4000)
test23()340   public void test23()  throws Throwable  {
341       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
342       Entry entry0 = simpleEntryGroup0.createEntry();
343       entry0.addFeatureChangeListener(simpleEntryGroup0);
344       assertEquals(1, simpleEntryGroup0.size());
345   }
346 
347   @Test(timeout = 4000)
test24()348   public void test24()  throws Throwable  {
349       FastaStreamSequence fastaStreamSequence0 = new FastaStreamSequence("eJ#VzDW J");
350       Bases bases0 = new Bases(fastaStreamSequence0);
351       Entry entry0 = null;
352       try {
353         entry0 = new Entry(bases0, (uk.ac.sanger.artemis.io.Entry) null);
354         fail("Expecting exception: NullPointerException");
355 
356       } catch(NullPointerException e) {
357          //
358          // no message in exception (getMessage() returned null)
359          //
360          verifyException("uk.ac.sanger.artemis.Entry", e);
361       }
362   }
363 
364   @Test(timeout = 4000)
test25()365   public void test25()  throws Throwable  {
366       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
367       Entry entry0 = simpleEntryGroup0.createEntry("");
368       FeatureEnumeration featureEnumeration0 = entry0.features();
369       assertFalse(featureEnumeration0.hasMoreFeatures());
370   }
371 
372   @Test(timeout = 4000)
test26()373   public void test26()  throws Throwable  {
374       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
375       Entry entry0 = simpleEntryGroup0.createEntry("LH");
376       int int0 = entry0.getFeatureCount();
377       assertEquals(0, int0);
378   }
379 
380   @Test(timeout = 4000)
test27()381   public void test27()  throws Throwable  {
382       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
383       Entry entry0 = simpleEntryGroup0.createEntry();
384       BlastEntryInformation blastEntryInformation0 = new BlastEntryInformation();
385       Key key0 = blastEntryInformation0.getDefaultKey();
386       QualifierVector qualifierVector0 = new QualifierVector();
387       // Undeclared exception!
388       try {
389         entry0.createFeature(key0, (Location) null, qualifierVector0);
390         fail("Expecting exception: NullPointerException");
391 
392       } catch(NullPointerException e) {
393          //
394          // no message in exception (getMessage() returned null)
395          //
396          verifyException("uk.ac.sanger.artemis.io.FeatureTree", e);
397       }
398   }
399 
400   @Test(timeout = 4000)
test28()401   public void test28()  throws Throwable  {
402       Bases bases0 = new Bases((Sequence) null);
403       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
404       Entry entry0 = simpleEntryGroup0.createEntry("w(3hY?]&$O");
405       FeatureVector featureVector0 = entry0.checkForMissingQualifiers();
406       assertNotNull(featureVector0);
407   }
408 
409   @Test(timeout = 4000)
test29()410   public void test29()  throws Throwable  {
411       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
412       Entry entry0 = simpleEntryGroup0.createEntry("");
413       FeatureVector featureVector0 = entry0.checkForOverlappingCDSs();
414       assertNotNull(featureVector0);
415   }
416 
417   @Test(timeout = 4000)
test30()418   public void test30()  throws Throwable  {
419       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
420       Entry entry0 = simpleEntryGroup0.createEntry("yyG_%4c>t3kF8xIA");
421       FeatureVector featureVector0 = entry0.checkForEMBLDuplicates();
422       assertNotNull(featureVector0);
423   }
424 
425   @Test(timeout = 4000)
test31()426   public void test31()  throws Throwable  {
427       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
428       Entry entry0 = simpleEntryGroup0.createEntry((String) null);
429       FeatureVector featureVector0 = entry0.checkFeatureStopCodons();
430       assertNotNull(featureVector0);
431   }
432 
433   @Test(timeout = 4000)
test32()434   public void test32()  throws Throwable  {
435       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
436       FilteredEntryGroup filteredEntryGroup0 = new FilteredEntryGroup(simpleEntryGroup0, (FeatureVector) null, "");
437       Entry entry0 = filteredEntryGroup0.createEntry("gvBW9t<{");
438       FeatureVector featureVector0 = entry0.checkFeatureStartCodons();
439       assertNotNull(featureVector0);
440   }
441 
442   @Test(timeout = 4000)
test33()443   public void test33()  throws Throwable  {
444       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
445       Entry entry0 = simpleEntryGroup0.createEntry();
446       FeatureVector featureVector0 = entry0.checkForNonEMBLKeys();
447       assertNotNull(featureVector0);
448   }
449 
450   @Test(timeout = 4000)
test34()451   public void test34()  throws Throwable  {
452       Entry entry0 = Entry.newEntry((Bases) null);
453       Range range0 = new Range(230, 230);
454       entry0.truncate((Bases) null, range0);
455       // Undeclared exception!
456       entry0.truncate((Bases) null, range0);
457   }
458 
459   @Test(timeout = 4000)
test35()460   public void test35()  throws Throwable  {
461       Entry entry0 = Entry.newEntry((Bases) null);
462       FeatureVector featureVector0 = entry0.getAllFeatures();
463       assertNotNull(featureVector0);
464   }
465 
466   @Test(timeout = 4000)
test36()467   public void test36()  throws Throwable  {
468       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
469       Entry entry0 = simpleEntryGroup0.createEntry();
470       Range range0 = new Range(9999, 9999);
471       FeatureVector featureVector0 = entry0.getFeaturesInRange(range0);
472       assertNotNull(featureVector0);
473   }
474 
475   @Test(timeout = 4000)
test37()476   public void test37()  throws Throwable  {
477       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
478       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
479       Bases bases0 = new Bases(genbankStreamSequence0);
480       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
481       Entry entry0 = simpleEntryGroup0.createEntry("):");
482       Document document0 = entry0.getRootDocument();
483       assertTrue(document0.writable());
484   }
485 
486   @Test(timeout = 4000)
test38()487   public void test38()  throws Throwable  {
488       Bases bases0 = new Bases((Sequence) null);
489       Entry entry0 = Entry.newEntry(bases0);
490       Document document0 = entry0.getRootDocument();
491       assertNull(document0);
492   }
493 
494   @Test(timeout = 4000)
test39()495   public void test39()  throws Throwable  {
496       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
497       Entry entry0 = simpleEntryGroup0.createEntry("LH");
498       boolean boolean0 = entry0.setHeaderText("LH");
499       assertTrue(boolean0);
500   }
501 
502   @Test(timeout = 4000)
test40()503   public void test40()  throws Throwable  {
504       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
505       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
506       Bases bases0 = new Bases(genbankStreamSequence0);
507       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
508       Entry entry0 = simpleEntryGroup0.createEntry("):");
509       boolean boolean0 = entry0.setName("):");
510       assertTrue(boolean0);
511   }
512 
513   @Test(timeout = 4000)
test41()514   public void test41()  throws Throwable  {
515       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
516       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
517       Bases bases0 = new Bases(genbankStreamSequence0);
518       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
519       Entry entry0 = simpleEntryGroup0.createEntry("):");
520       boolean boolean0 = entry0.setName("internal error - unexpected exception: ");
521       assertTrue(boolean0);
522   }
523 
524   @Test(timeout = 4000)
test42()525   public void test42()  throws Throwable  {
526       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
527       Entry entry0 = simpleEntryGroup0.createEntry((String) null);
528       entry0.saveStandardOnly(0);
529       assertFalse(entry0.isReadOnly());
530   }
531 
532   @Test(timeout = 4000)
test43()533   public void test43()  throws Throwable  {
534       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("$Ld'&MHOwN]Z");
535       Bases bases0 = new Bases(genbankStreamSequence0);
536       Entry entry0 = Entry.newEntry(bases0);
537       entry0.saveStandardOnly(1);
538       assertFalse(entry0.isReadOnly());
539   }
540 
541   @Test(timeout = 4000)
test44()542   public void test44()  throws Throwable  {
543       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
544       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
545       Bases bases0 = new Bases(genbankStreamSequence0);
546       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
547       Entry entry0 = simpleEntryGroup0.createEntry("):");
548       entry0.save(0);
549       assertFalse(entry0.isReadOnly());
550   }
551 
552   @Test(timeout = 4000)
test45()553   public void test45()  throws Throwable  {
554       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
555       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
556       Bases bases0 = new Bases(genbankStreamSequence0);
557       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
558       Entry entry0 = simpleEntryGroup0.createEntry("):");
559       entry0.save(2);
560       assertFalse(entry0.isReadOnly());
561   }
562 
563   @Test(timeout = 4000)
test46()564   public void test46()  throws Throwable  {
565       MSPcrunchEntryInformation mSPcrunchEntryInformation0 = new MSPcrunchEntryInformation();
566       EmblDocumentEntry emblDocumentEntry0 = new EmblDocumentEntry(mSPcrunchEntryInformation0);
567       Entry entry0 = null;
568       try {
569         entry0 = new Entry(emblDocumentEntry0);
570         fail("Expecting exception: Exception");
571 
572       } catch(Throwable e) {
573          //
574          // no message in exception (getMessage() returned null)
575          //
576          verifyException("uk.ac.sanger.artemis.Entry", e);
577       }
578   }
579 
580   @Test(timeout = 4000)
test47()581   public void test47()  throws Throwable  {
582       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
583       Entry entry0 = simpleEntryGroup0.createEntry();
584       // Undeclared exception!
585       try {
586         entry0.indexOf((Feature) null);
587         fail("Expecting exception: NullPointerException");
588 
589       } catch(NullPointerException e) {
590          //
591          // no message in exception (getMessage() returned null)
592          //
593          verifyException("uk.ac.sanger.artemis.Entry", e);
594       }
595   }
596 
597   @Test(timeout = 4000)
test48()598   public void test48()  throws Throwable  {
599       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
600       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
601       Bases bases0 = new Bases(genbankStreamSequence0);
602       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
603       Entry entry0 = simpleEntryGroup0.createEntry("):");
604       boolean boolean0 = entry0.isReadOnly();
605       assertFalse(boolean0);
606   }
607 
608   @Test(timeout = 4000)
test49()609   public void test49()  throws Throwable  {
610       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
611       Entry entry0 = simpleEntryGroup0.createEntry("");
612       entry0.featureChanged((FeatureChangeEvent) null);
613       assertFalse(entry0.isReadOnly());
614   }
615 
616   @Test(timeout = 4000)
test50()617   public void test50()  throws Throwable  {
618       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
619       Entry entry0 = simpleEntryGroup0.createEntry();
620       String string0 = entry0.getHeaderText();
621       assertNull(string0);
622   }
623 
624   @Test(timeout = 4000)
test51()625   public void test51()  throws Throwable  {
626       Entry entry0 = Entry.newEntry((Bases) null);
627       Key key0 = Key.CDS;
628       // Undeclared exception!
629       try {
630         entry0.createFeature(key0, (Location) null);
631         fail("Expecting exception: NullPointerException");
632 
633       } catch(NullPointerException e) {
634          //
635          // no message in exception (getMessage() returned null)
636          //
637          verifyException("uk.ac.sanger.artemis.io.FeatureTree", e);
638       }
639   }
640 
641   @Test(timeout = 4000)
test52()642   public void test52()  throws Throwable  {
643       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
644       FeatureVector featureVector0 = new FeatureVector();
645       FilteredEntryGroup filteredEntryGroup0 = new FilteredEntryGroup(simpleEntryGroup0, featureVector0, "operation cannot be applied to this entry");
646       Entry entry0 = filteredEntryGroup0.createEntry();
647       // Undeclared exception!
648       try {
649         entry0.contains((Feature) null);
650         fail("Expecting exception: NullPointerException");
651 
652       } catch(NullPointerException e) {
653          //
654          // no message in exception (getMessage() returned null)
655          //
656          verifyException("uk.ac.sanger.artemis.Entry", e);
657       }
658   }
659 
660   @Test(timeout = 4000)
test53()661   public void test53()  throws Throwable  {
662       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
663       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
664       Bases bases0 = new Bases(genbankStreamSequence0);
665       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
666       Entry entry0 = simpleEntryGroup0.createEntry("):");
667       Feature feature0 = simpleEntryGroup0.createFeature();
668       // Undeclared exception!
669       try {
670         entry0.add(feature0, true);
671         fail("Expecting exception: Error");
672 
673       } catch(Error e) {
674          //
675          // internal error - Feature has a parent
676          //
677          verifyException("uk.ac.sanger.artemis.Entry", e);
678       }
679   }
680 
681   @Test(timeout = 4000)
test54()682   public void test54()  throws Throwable  {
683       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup();
684       Entry entry0 = simpleEntryGroup0.createEntry();
685       // Undeclared exception!
686       try {
687         entry0.getFeature(803);
688         fail("Expecting exception: NullPointerException");
689 
690       } catch(NullPointerException e) {
691          //
692          // no message in exception (getMessage() returned null)
693          //
694          verifyException("uk.ac.sanger.artemis.Entry", e);
695       }
696   }
697 
698   @Test(timeout = 4000)
test55()699   public void test55()  throws Throwable  {
700       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
701       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
702       Bases bases0 = new Bases(genbankStreamSequence0);
703       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
704       Entry entry0 = simpleEntryGroup0.createEntry("):");
705       boolean boolean0 = entry0.hasUnsavedChanges();
706       assertFalse(boolean0);
707   }
708 
709   @Test(timeout = 4000)
test56()710   public void test56()  throws Throwable  {
711       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
712       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
713       Bases bases0 = new Bases(genbankStreamSequence0);
714       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
715       Entry entry0 = simpleEntryGroup0.createEntry("):");
716       entry0.removeAllFeatures();
717       assertFalse(entry0.isReadOnly());
718   }
719 
720   @Test(timeout = 4000)
test57()721   public void test57()  throws Throwable  {
722       EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("C0<#");
723       GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence(emblStreamSequence0);
724       Bases bases0 = new Bases(genbankStreamSequence0);
725       SimpleEntryGroup simpleEntryGroup0 = new SimpleEntryGroup(bases0);
726       Entry entry0 = simpleEntryGroup0.createEntry("):");
727       MockFile mockFile0 = new MockFile("internal error - unexpected exception: ", "internal error - unexpected exception: ");
728       entry0.saveStandardOnly((File) mockFile0, 1, false);
729       assertEquals(1392409281320L, mockFile0.lastModified());
730   }
731 
732   @Test(timeout = 4000)
test58()733   public void test58()  throws Throwable  {
734       Entry entry0 = Entry.newEntry((Bases) null);
735       MockFile mockFile0 = new MockFile("internnl error - (nexpected5exception: ", "', ");
736       EntryInformation entryInformation0 = entry0.getEntryInformation();
737       // Undeclared exception!
738       try {
739         entry0.save((File) mockFile0, (-1), true, entryInformation0);
740         fail("Expecting exception: Error");
741 
742       } catch(Error e) {
743          //
744          // internal error - unknown DocumentEntry type
745          //
746          verifyException("uk.ac.sanger.artemis.io.DocumentEntryFactory", e);
747       }
748   }
749 }
750