/*
 * This file was automatically generated by EvoSuite
 * Sun Mar 03 02:35:18 GMT 2024
 */

package com.ib.client;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.ib.client.Execution;
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, useJEE = true) 
public class Execution_ESTest extends Execution_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      Execution execution0 = new Execution();
      Execution execution1 = new Execution((-1027), 3788, (String) null, "ESievda<c", "ESievda<c", (String) null, "ESievda<c", 0, 0.0, 3957, 3957, 0, 0);
      // Undeclared exception!
      try { 
        execution0.equals(execution1);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
      }
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      Execution execution0 = new Execution();
      Object object0 = new Object();
      // Undeclared exception!
      try { 
        execution0.equals(object0);
        fail("Expecting exception: ClassCastException");
      
      } catch(ClassCastException e) {
         //
         // java.lang.Object incompatible with com.ib.client.Execution
         //
         verifyException("com.ib.client.Execution", e);
      }
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      Execution execution0 = new Execution();
      execution0.m_execId = "com.ib.client.Execution";
      Execution execution1 = new Execution(0, 0, "", "'jG=", "com.ib.client.Execution", "", (String) null, (-1612), 0.0, 1083, 0, 2265, 0);
      execution0.equals(execution1);
      assertEquals(0, execution0.m_liquidation);
      assertEquals(0, execution0.m_orderId);
      assertEquals(0.0, execution1.m_price, 0.01);
      assertEquals(0.0, execution0.m_avgPrice, 0.01);
      assertEquals(0, execution0.m_cumQty);
      assertEquals(0, execution1.m_liquidation);
      assertEquals(0, execution1.m_orderId);
      assertEquals((-1612), execution1.m_shares);
      assertEquals(1083, execution1.m_permId);
      assertEquals(0.0, execution0.m_price, 0.01);
      assertEquals(2265, execution1.m_cumQty);
      assertEquals(0, execution1.m_clientId);
      assertEquals(0, execution0.m_shares);
      assertEquals(0.0, execution1.m_avgPrice, 0.01);
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      Execution execution0 = new Execution();
      boolean boolean0 = execution0.equals((Object) null);
      assertEquals(0.0, execution0.m_price, 0.01);
      assertEquals(0, execution0.m_permId);
      assertEquals(0, execution0.m_cumQty);
      assertEquals(0, execution0.m_shares);
      assertFalse(boolean0);
      assertEquals(0, execution0.m_clientId);
      assertEquals(0.0, execution0.m_avgPrice, 0.01);
      assertEquals(0, execution0.m_liquidation);
      assertEquals(0, execution0.m_orderId);
  }

  @Test(timeout = 4000)
  public void test4()  throws Throwable  {
      Execution execution0 = new Execution();
      boolean boolean0 = execution0.equals(execution0);
      assertTrue(boolean0);
      assertEquals(0, execution0.m_orderId);
      assertEquals(0, execution0.m_liquidation);
      assertEquals(0.0, execution0.m_avgPrice, 0.01);
      assertEquals(0.0, execution0.m_price, 0.01);
      assertEquals(0, execution0.m_permId);
      assertEquals(0, execution0.m_clientId);
      assertEquals(0, execution0.m_shares);
      assertEquals(0, execution0.m_cumQty);
  }
}
