/*
 * This file was automatically generated by EvoSuite
 * Sun Mar 03 02:42:52 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.OrderState;
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 OrderState_ESTest extends OrderState_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test00()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      orderState0.m_equityWithLoan = "?wD/216o";
      OrderState orderState1 = new OrderState();
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(boolean0);
      assertFalse(orderState1.equals((Object)orderState0));
      assertEquals(0.0, orderState1.m_commission, 0.01);
      assertEquals(0.0, orderState1.m_minCommission, 0.01);
      assertEquals(0.0, orderState1.m_maxCommission, 0.01);
  }

  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState();
      assertTrue(orderState1.equals((Object)orderState0));
      
      orderState0.m_maintMargin = "C`>&P";
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(orderState1.equals((Object)orderState0));
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test02()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState((String) null, "iQi", "", "", 0.0, 0.0, 0.0, "CoY`$bg5(3Ahp)q<)GS", "?.FGIn`b");
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(boolean0);
      assertEquals(0.0, orderState1.m_minCommission, 0.01);
      assertEquals(0.0, orderState1.m_commission, 0.01);
  }

  @Test(timeout = 4000)
  public void test03()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState();
      assertTrue(orderState1.equals((Object)orderState0));
      
      orderState0.m_status = "com.ib.client.OrderState";
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(orderState1.equals((Object)orderState0));
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test04()  throws Throwable  {
      OrderState orderState0 = new OrderState("RC#&j{1}", "RC#&j{1}", "RC#&j{1}", "", 0.0, 0.0, 0.0, "", "");
      OrderState orderState1 = new OrderState("", "RC#&j{1}", "RC#&j{1}", "", 0.0, 0.0, 0.0, "RC#&j{1}", "");
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(orderState1.equals((Object)orderState0));
      assertEquals(0.0, orderState1.m_maxCommission, 0.01);
      assertEquals(0.0, orderState1.m_minCommission, 0.01);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test05()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState();
      assertEquals(0.0, orderState1.m_maxCommission, 0.01);
      
      orderState1.m_maxCommission = (-47.66722);
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test06()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState();
      assertEquals(0.0, orderState1.m_minCommission, 0.01);
      
      orderState1.m_minCommission = 261.8161939448333;
      boolean boolean0 = orderState1.equals(orderState0);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test07()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState();
      assertEquals(0.0, orderState1.m_minCommission, 0.01);
      
      orderState1.m_minCommission = 261.8161939448333;
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test08()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState((String) null, "", (String) null, (String) null, (-2872.0), 0.0, 0.0, (String) null, (String) null);
      boolean boolean0 = orderState0.equals(orderState1);
      assertEquals(0.0, orderState1.m_maxCommission, 0.01);
      assertEquals(0.0, orderState0.m_commission, 0.01);
      assertFalse(boolean0);
      assertFalse(orderState1.equals((Object)orderState0));
      assertEquals(0.0, orderState1.m_minCommission, 0.01);
  }

  @Test(timeout = 4000)
  public void test09()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      boolean boolean0 = orderState0.equals(orderState0);
      assertTrue(boolean0);
      assertEquals(0.0, orderState0.m_minCommission, 0.01);
      assertEquals(0.0, orderState0.m_maxCommission, 0.01);
      assertEquals(0.0, orderState0.m_commission, 0.01);
  }

  @Test(timeout = 4000)
  public void test10()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState((String) null, (String) null, (String) null, (String) null, 0.0, 0.0, 0.0, (String) null, (String) null);
      boolean boolean0 = orderState0.equals(orderState1);
      assertEquals(0.0, orderState1.m_commission, 0.01);
      assertEquals(0.0, orderState1.m_minCommission, 0.01);
      assertTrue(boolean0);
  }

  @Test(timeout = 4000)
  public void test11()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState((String) null, "", (String) null, "7!47zRh\"PnG80(.$%", 0.0, 0.0, 0.0, "", (String) null);
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(boolean0);
      assertFalse(orderState1.equals((Object)orderState0));
  }

  @Test(timeout = 4000)
  public void test12()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState((String) null, (String) null, "w", (String) null, 0.0, 0.0, 0.0, (String) null, "");
      boolean boolean0 = orderState0.equals(orderState1);
      assertEquals(0.0, orderState1.m_minCommission, 0.01);
      assertEquals(0.0, orderState1.m_maxCommission, 0.01);
      assertFalse(orderState1.equals((Object)orderState0));
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test13()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      orderState0.m_initMargin = "I";
      OrderState orderState1 = new OrderState();
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(orderState1.equals((Object)orderState0));
      assertFalse(boolean0);
      assertEquals(0.0, orderState1.m_commission, 0.01);
      assertEquals(0.0, orderState1.m_minCommission, 0.01);
      assertEquals(0.0, orderState1.m_maxCommission, 0.01);
  }

  @Test(timeout = 4000)
  public void test14()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState();
      assertTrue(orderState1.equals((Object)orderState0));
      
      orderState1.m_status = "\"";
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(orderState1.equals((Object)orderState0));
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test15()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      assertEquals(0.0, orderState0.m_maxCommission, 0.01);
      
      orderState0.m_maxCommission = (-47.66722);
      OrderState orderState1 = new OrderState();
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test16()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      OrderState orderState1 = new OrderState((String) null, (String) null, "?#j681hRQQ%j4?YV\"sl", "?#j681hRQQ%j4?YV\"sl", 1.0, 0.0, 0.0, (String) null, "");
      boolean boolean0 = orderState0.equals(orderState1);
      assertEquals(0.0, orderState1.m_minCommission, 0.01);
      assertEquals(0.0, orderState1.m_maxCommission, 0.01);
      assertEquals(1.0, orderState1.m_commission, 0.01);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test17()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      boolean boolean0 = orderState0.equals((Object) null);
      assertEquals(0.0, orderState0.m_commission, 0.01);
      assertFalse(boolean0);
      assertEquals(0.0, orderState0.m_maxCommission, 0.01);
      assertEquals(0.0, orderState0.m_minCommission, 0.01);
  }

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

  @Test(timeout = 4000)
  public void test19()  throws Throwable  {
      OrderState orderState0 = new OrderState();
      orderState0.m_commissionCurrency = "r";
      OrderState orderState1 = new OrderState();
      boolean boolean0 = orderState0.equals(orderState1);
      assertFalse(orderState1.equals((Object)orderState0));
      assertEquals(0.0, orderState1.m_commission, 0.01);
      assertFalse(boolean0);
  }
}
