/*
 * This file was automatically generated by EvoSuite
 * Sun Mar 03 02:37:17 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.ExecutionFilter;
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 ExecutionFilter_ESTest extends ExecutionFilter_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test00()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter(0, "?h.GN,fLIw!RL%Z", "", "", "?h.GN,fLIw!RL%Z", "", "?h.GN,fLIw!RL%Z");
      executionFilter0.m_acctCode = "=+GWo)l";
      ExecutionFilter executionFilter1 = new ExecutionFilter(0, "=+GWo)l", "", "=+GWo)l", "com.ib.client.ExecutionFilter", "", "");
      executionFilter0.m_symbol = "xa";
      boolean boolean0 = executionFilter0.equals(executionFilter1);
      assertEquals(0, executionFilter1.m_clientId);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter((-1), "", "", "", "", "", "tdx:po2xp");
      ExecutionFilter executionFilter1 = new ExecutionFilter(4534, "", "=", "", "mprjxryx", "", "");
      boolean boolean0 = executionFilter0.equals(executionFilter1);
      assertEquals(4534, executionFilter1.m_clientId);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test02()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter((-1), "", "", "", "", "", "tdx:po2xp");
      // Undeclared exception!
      try { 
        executionFilter0.equals("tdx:po2xp");
        fail("Expecting exception: ClassCastException");
      
      } catch(ClassCastException e) {
         //
         // java.lang.String incompatible with com.ib.client.ExecutionFilter
         //
         verifyException("com.ib.client.ExecutionFilter", e);
      }
  }

  @Test(timeout = 4000)
  public void test03()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter((-1), "", "", "", "", "", "tdx:po2xp");
      executionFilter0.m_side = "mprjxryx";
      ExecutionFilter executionFilter1 = new ExecutionFilter((-1), "", "", "", "", "", "tdx:po2xp");
      boolean boolean0 = executionFilter0.equals(executionFilter1);
      assertEquals((-1), executionFilter1.m_clientId);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test04()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter((-1), "", "", "", "", "", "tdx:po2xp");
      ExecutionFilter executionFilter1 = new ExecutionFilter((-1), "", "", "", "", "", "tdx:po2xp");
      assertTrue(executionFilter1.equals((Object)executionFilter0));
      
      executionFilter0.m_secType = "=";
      boolean boolean0 = executionFilter0.equals(executionFilter1);
      assertFalse(executionFilter1.equals((Object)executionFilter0));
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test05()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter((-1), "", "", "", "", "", "");
      ExecutionFilter executionFilter1 = new ExecutionFilter((-1), "", "", "", "", "", "");
      boolean boolean0 = executionFilter0.equals(executionFilter1);
      assertTrue(boolean0);
      assertEquals((-1), executionFilter1.m_clientId);
  }

  @Test(timeout = 4000)
  public void test06()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter();
      executionFilter0.m_acctCode = "";
      executionFilter0.m_time = "HN;DF%kBbd~";
      ExecutionFilter executionFilter1 = new ExecutionFilter((-2157), "", "&c*}j2>qi:drHBkQ{", (String) null, "HN;DF%kBbd~", "HN;DF%kBbd~", (String) null);
      assertEquals((-2157), executionFilter1.m_clientId);
      
      executionFilter1.m_clientId = 0;
      boolean boolean0 = executionFilter0.equals(executionFilter1);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test07()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter();
      executionFilter0.m_acctCode = "";
      ExecutionFilter executionFilter1 = new ExecutionFilter((-2157), "", "&c*}j2>qi:drHBkQ{", (String) null, "HN;DF%kBbd~", "HN;DF%kBbd~", (String) null);
      executionFilter1.m_clientId = 0;
      // Undeclared exception!
      try { 
        executionFilter0.equals(executionFilter1);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
      }
  }

  @Test(timeout = 4000)
  public void test08()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter(0, "-)O55Hx7H~`.r:^B", "-)O55Hx7H~`.r:^B", "|4PoD/`?", "-)O55Hx7H~`.r:^B", "|4PoD/`?", "|4PoD/`?");
      ExecutionFilter executionFilter1 = new ExecutionFilter(0, ">E-8W5-", ">E-8W5-", ">E-8W5-", ">E-8W5-", "|4PoD/`?", "com.ib.client.ExecutionFilter");
      boolean boolean0 = executionFilter0.equals(executionFilter1);
      assertEquals(0, executionFilter1.m_clientId);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test09()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter();
      ExecutionFilter executionFilter1 = new ExecutionFilter((-2157), "", "&c*}j2>qi:drHBkQ{", (String) null, "HN;DF%kBbd~", "HN;DF%kBbd~", (String) null);
      boolean boolean0 = executionFilter0.equals(executionFilter1);
      assertEquals((-2157), executionFilter1.m_clientId);
      assertEquals(0, executionFilter0.m_clientId);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test10()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter();
      boolean boolean0 = executionFilter0.equals((Object) null);
      assertEquals(0, executionFilter0.m_clientId);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test11()  throws Throwable  {
      ExecutionFilter executionFilter0 = new ExecutionFilter();
      boolean boolean0 = executionFilter0.equals(executionFilter0);
      assertTrue(boolean0);
      assertEquals(0, executionFilter0.m_clientId);
  }
}
