/*
 * This file was automatically generated by EvoSuite
 * Wed Sep 19 20:59:30 GMT 2018
 */

package uk.ac.sanger.artemis.components.filetree;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.awt.HeadlessException;
import javax.swing.JFrame;
import javax.swing.tree.TreeModel;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
import uk.ac.sanger.artemis.components.filetree.RemoteFileNode;
import uk.ac.sanger.artemis.components.filetree.SshJTreeTable;

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

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      RemoteFileNode remoteFileNode0 = new RemoteFileNode(false);
      SshJTreeTable.showFilePane(remoteFileNode0);
      assertNull(remoteFileNode0.getFullName());
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      SshJTreeTable sshJTreeTable0 = null;
      try {
        sshJTreeTable0 = new SshJTreeTable((TreeModel) null, (JFrame) null);
        fail("Expecting exception: HeadlessException");
      
      } catch(HeadlessException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("java.awt.dnd.DragSource", e);
      }
  }
}
