content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Thu Mar 21 05:44:17 GMT 2024
   */
  
  package macaw.util;
  
  import org.junit.jupiter.api.Test;
  import static org.junit.jupiter.api.Assertions.*;
  import org.junit.jupiter.api.Timeout;
  import java.util.concurrent.TimeUnit;
  import static org.evosuite.runtime.EvoAssertions.*;
  import java.awt.HeadlessException;
  import javax.swing.JPanel;
  import macaw.businessLayer.User;
  import macaw.system.SessionProperties;
  import macaw.util.DisplayableListItemAdder;
  import macaw.util.DisplayableListItemDeleter;
  import macaw.util.DisplayableListItemEditor;
  import macaw.util.DisplayableListItemSelector;
  import macaw.util.DisplayableListItemViewer;
  import macaw.util.DisplayableListPanel;
  import macaw.util.DisplayableListParentForm;
  import org.evosuite.runtime.EvoRunner;
  import org.evosuite.runtime.EvoRunnerParameters;
  import org.junit.runner.RunWith;
  
  @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) 
  public class DisplayableListPanel_Original_ESTest extends DisplayableListPanel_Original_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testUpdateButtonStates0() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("securityService", "securityService");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "userInterfaceFactory", true, false);
        displayableListPanel.updateButtonStates();
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testUpdateButtonStates1() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("securityService", "securityService");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "startupOptions", false, false);
        displayableListPanel.updateButtonStates();
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testUpdateButtonStates2() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("securityService", "securityService");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "currentUser", true, true);
        displayableListPanel.updateButtonStates();
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testDeleteSelectedListItemsThrowsHeadlessException() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("securityService", "securityService");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "log", true);
        // Undeclared exception!
        try { 
          displayableListPanel.deleteSelectedListItems();
          fail("Expecting exception: HeadlessException");
        
        } catch(HeadlessException e) {
           //
           // no message in exception (getMessage() returned null)
           //
           verifyException("java.awt.GraphicsEnvironment", e);
        }
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testAddListItemThrowsHeadlessException() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User();
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "startupOptions", false, false);
        // Undeclared exception!
        try { 
          displayableListPanel.addListItem();
          fail("Expecting exception: HeadlessException");
        
        } catch(HeadlessException e) {
           //
           // no message in exception (getMessage() returned null)
           //
           verifyException("java.awt.GraphicsEnvironment", e);
        }
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetPanel0() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User();
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "startupOptions", true, true);
        JPanel panel = displayableListPanel.getPanel();
        assertFalse(panel.isFocusTraversalPolicySet());
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSetDisplayableListItemSelector() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("retrievalService", "userInterfaceFactory");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "startupOptions", true);
        displayableListPanel.setDisplayableListItemSelector((DisplayableListItemSelector) null);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSetDisplayableListItemViewer() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("database", "currentUser");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "startupOptions", true);
        displayableListPanel.setDisplayableListItemViewer((DisplayableListItemViewer) null);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSetDisplayableListItemEditor() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User();
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "securityService", true);
        displayableListPanel.setDisplayableListItemEditor((DisplayableListItemEditor) null);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSave() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("securityService", "securityService");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "startupOptions", true, true);
        displayableListPanel.save();
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSetDisplayableListItemAdder() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User();
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "startupOptions", true, true);
        displayableListPanel.setDisplayableListItemAdder((DisplayableListItemAdder) null);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSetNewRecord() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("securityService", "securityService");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "database", true, true);
        displayableListPanel.setNewRecord(true);
        displayableListPanel.updateButtonStates();
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSetDisplayableListItemDeleter() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("securityService", "securityService");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "f#S*Y", false, false);
        displayableListPanel.setDisplayableListItemDeleter((DisplayableListItemDeleter) null);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSetListOwnerName() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("securityService", "]6gx9Vm}+uh(X");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "currentUser", true, true);
        displayableListPanel.setListOwnerName("startupOptions");
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetPanel1() throws Throwable  {
        SessionProperties arg0 = new SessionProperties();
        User arg1 = new User("securityService", "securityService");
        arg0.setProperty("currentUser", arg1);
        DisplayableListPanel displayableListPanel = new DisplayableListPanel(arg0, (DisplayableListParentForm) null, "f#S*Y", false, false);
        JPanel panel = displayableListPanel.getPanel();
        assertFalse(panel.isFocusTraversalPolicyProvider());
    }
  }
  