content: /*
   * This file was automatically generated by EvoSuite
   */
  
  package com.lts.caloriecount.ui.dnd;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.evosuite.junit.EvoSuiteRunner;
  import static org.junit.Assert.*;
  import com.lts.caloriecount.ui.dnd.LTSTransferHandler;
  import java.awt.Component;
  import java.awt.datatransfer.Clipboard;
  import java.awt.datatransfer.StringSelection;
  import java.awt.datatransfer.Transferable;
  import java.awt.event.InputEvent;
  import javax.swing.ComboBoxModel;
  import javax.swing.DefaultComboBoxModel;
  import javax.swing.JComboBox;
  import javax.swing.JComponent;
  import javax.swing.JTextField;
  import javax.swing.MenuElement;
  import javax.swing.MenuSelectionManager;
  import javax.swing.TransferHandler;
  import javax.swing.event.MenuKeyEvent;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class LTSTransferHandlerEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        LTSTransferHandler lTSTransferHandler0 = new LTSTransferHandler();
        JTextField jTextField0 = new JTextField("", 127);
        Transferable transferable0 = lTSTransferHandler0.createTransferable((JComponent) jTextField0);
        assertNull(transferable0);
    }
  
    @Test
    public void test1()  throws Throwable  {
        LTSTransferHandler lTSTransferHandler0 = new LTSTransferHandler();
        JTextField jTextField0 = new JTextField("", 127);
        StringSelection stringSelection0 = new StringSelection("");
        TransferHandler.TransferSupport transferHandler_TransferSupport0 = new TransferHandler.TransferSupport((Component) jTextField0, (Transferable) stringSelection0);
        boolean boolean0 = lTSTransferHandler0.canImport(transferHandler_TransferSupport0);
        assertEquals(false, boolean0);
    }
  
    @Test
    public void test2()  throws Throwable  {
        LTSTransferHandler lTSTransferHandler0 = new LTSTransferHandler();
        JTextField jTextField0 = new JTextField("", 127);
        Clipboard clipboard0 = new Clipboard("");
        lTSTransferHandler0.exportToClipboard((JComponent) jTextField0, clipboard0, (-535));
        assertEquals(0.5F, jTextField0.getAlignmentX(), 0.01F);
    }
  
    @Test
    public void test3()  throws Throwable  {
        LTSTransferHandler lTSTransferHandler0 = new LTSTransferHandler();
        DefaultComboBoxModel defaultComboBoxModel0 = new DefaultComboBoxModel();
        JComboBox jComboBox0 = new JComboBox((ComboBoxModel) defaultComboBoxModel0);
        MenuElement[] menuElementArray0 = new MenuElement[1];
        MenuSelectionManager menuSelectionManager0 = new MenuSelectionManager();
        MenuKeyEvent menuKeyEvent0 = new MenuKeyEvent((Component) jComboBox0, 0, 0L, 0, 0, 'I', menuElementArray0, menuSelectionManager0);
        lTSTransferHandler0.exportAsDrag((JComponent) jComboBox0, (InputEvent) menuKeyEvent0, 0);
        assertEquals(true, jComboBox0.isBackgroundSet());
    }
  
    @Test
    public void test4()  throws Throwable  {
        LTSTransferHandler lTSTransferHandler0 = new LTSTransferHandler();
        DefaultComboBoxModel defaultComboBoxModel0 = new DefaultComboBoxModel();
        JComboBox jComboBox0 = new JComboBox((ComboBoxModel) defaultComboBoxModel0);
        StringSelection stringSelection0 = new StringSelection("*C");
        TransferHandler.TransferSupport transferHandler_TransferSupport0 = new TransferHandler.TransferSupport((Component) jComboBox0, (Transferable) stringSelection0);
        boolean boolean0 = lTSTransferHandler0.importData(transferHandler_TransferSupport0);
        assertEquals(false, boolean0);
    }
  }
  