content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Wed Mar 20 19:44:03 GMT 2024
   */
  
  package com.ib.client;
  
  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 com.ib.client.ComboLeg;
  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 ComboLeg_ESTest extends ComboLeg_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesComboLegTakingNoArgumentsAndEqualsReturningFalse0() throws Throwable  {
        // No Comments were added
        ComboLeg arg0 = new ComboLeg();
        arg0.m_designatedLocation = "I";
        ComboLeg comboLeg = new ComboLeg();
        boolean equals = comboLeg.equals(arg0);
        assertEquals(0, comboLeg.m_shortSaleSlot);
        assertEquals(0, comboLeg.m_conId);
        assertEquals(0, comboLeg.m_ratio);
        assertFalse(equals);
        assertEquals(0, comboLeg.m_openClose);
        assertFalse(arg0.equals((Object)comboLeg));
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesComboLegTakingNoArgumentsAndEqualsReturningFalse1() throws Throwable  {
        // No Comments were added
        ComboLeg arg0 = new ComboLeg();
        ComboLeg comboLeg = new ComboLeg();
        assertTrue(comboLeg.equals((Object)arg0));
        
        comboLeg.m_exchange = "dd[G-vqX;aH{K";
        boolean equals = comboLeg.equals(arg0);
        assertFalse(equals);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesComboLegTaking7Arguments0() throws Throwable  {
        // Given: A ComboLeg object with a negative ratio of -3032 and some other attributes set to default values.
        ComboLeg comboLeg = new ComboLeg((-3032), (-3032), "189,(_<3TYK{d.9cF", "", (-3032), (-3032), "189,(_<3TYK{d.9cF");
        
        // When: A new ComboLeg object is created with the same negative ratio as the previous object and some other attributes set to different values.
        ComboLeg arg0 = new ComboLeg((-3032), 1, " q:%.@2Gxj}", "", (-3032), (-3032), "} !Z.l8~5(q}}4 dW");
        
        // Then: The equals method should return false because the ratio of the two objects is different.
        assertFalse(comboLeg.equals(arg0));
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesComboLegTaking7Arguments1() throws Throwable  {
        // rollbacked to evosuite
        ComboLeg comboLeg = new ComboLeg((-3032), (-3032), "189,(_<3TYK{d.9cF", "", (-3032), (-1577), "189,(_<3TYK{d.9cF");
        ComboLeg arg0 = new ComboLeg((-3032), (-242), " q:%.@2Gxj}", "", (-3032), (-3032), "} !Z.l8~5(q}}4 dW");
        assertEquals((-242), arg0.m_ratio);
        
        arg0.m_ratio = (-3032);
        comboLeg.equals(arg0);
        assertEquals((-3032), comboLeg.m_openClose);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesComboLegTakingNoArgumentsAndCreatesComboLegTaking7Arguments() throws Throwable  {
        // Given the two ComboLeg objects to be compared
        ComboLeg comboLeg = new ComboLeg();
        ComboLeg arg0 = new ComboLeg(0, 0, ">-y&;a2X Y6B|pYp>l", "", 1, 1, "");
        
        // When the equals method is called on the first ComboLeg object
        boolean equals = comboLeg.equals(arg0);
        
        // Then the result of the comparison should be false, as the two objects have different values for some fields
        assertFalse(equals);
        
        // And the value of the m_openClose field for both objects should be 1
        assertEquals(1, arg0.m_openClose);
        assertEquals(1, comboLeg.m_openClose);
        
        // And the value of the m_shortSaleSlot field for both objects should be 0
        assertEquals(0, arg0.m_shortSaleSlot);
        assertEquals(0, comboLeg.m_shortSaleSlot);
        
        // And the value of the m_ratio field for both objects should be 1
        assertEquals(1, arg0.m_ratio);
        assertEquals(1, comboLeg.m_ratio);
        
        // And the value of the m_conId field for both objects should be 0
        assertEquals(0, arg0.m_conId);
        assertEquals(0, comboLeg.m_conId);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesComboLegTakingNoArgumentsAndEqualsReturningFalse2() throws Throwable  {
        // Given: A ComboLeg object and an argument for its equals method
        ComboLeg comboLeg = new ComboLeg();
        ComboLeg arg0 = new ComboLeg();
        
        // When: The equals method is called on the ComboLeg object with the argument
        boolean equals = comboLeg.equals(arg0);
        
        // Then: The result of the equals method should be false, as the ratio values are not equal
        assertFalse(equals);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesComboLegTaking5Arguments() throws Throwable  {
        // Given
        ComboLeg comboLeg = new ComboLeg((-1611), (-1611), "", "L/YQdDs@s0}aQP&9mDx", (-1611));
        ComboLeg arg0 = new ComboLeg();
        
        // When
        boolean equals = comboLeg.equals(arg0);
        
        // Then
        assertEquals(0, comboLeg.m_shortSaleSlot);
        assertEquals((-1611), comboLeg.m_conId);
        assertFalse(equals);
        assertEquals((-1611), comboLeg.m_openClose);
        assertEquals((-1611), comboLeg.m_ratio);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testEqualsWithNull() throws Throwable  {
        // Given a ComboLeg with a conId of 2593, a ratio of 1:1, and an openClose value of -500
        ComboLeg comboLeg = new ComboLeg(2593, 2593, (String) null, (String) null, (-500));
        
        // When the equals method is called with a null argument
        boolean equals = comboLeg.equals((Object) null);
        
        // Then the result should be false
        assertFalse(equals);
        
        // And the fields of the ComboLeg object should have been set correctly
        assertEquals(0, comboLeg.m_shortSaleSlot);
        assertEquals((-500), comboLeg.m_openClose);
        assertEquals(2593, comboLeg.m_ratio);
        assertEquals(2593, comboLeg.m_conId);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesComboLegTakingNoArgumentsAndEqualsReturningTrue0() throws Throwable  {
        // No Comments were added
        ComboLeg arg0 = new ComboLeg();
        boolean equals = arg0.equals(arg0);
        assertTrue(equals);
        assertEquals(0, arg0.m_openClose);
        assertEquals(0, arg0.m_conId);
        assertEquals(0, arg0.m_shortSaleSlot);
        assertEquals(0, arg0.m_ratio);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesComboLegTakingNoArgumentsAndEqualsReturningTrue1() throws Throwable  {
        // No Comments were added
        ComboLeg comboLeg = new ComboLeg();
        ComboLeg arg0 = new ComboLeg();
        boolean equals = comboLeg.equals(arg0);
        assertTrue(equals);
        assertEquals(0, arg0.m_shortSaleSlot);
        assertEquals(0, arg0.m_ratio);
        assertEquals(0, arg0.m_openClose);
        assertEquals(0, arg0.m_conId);
    }
  }
  