@Test(groups = "stress", invocationCount = 10000, threadPoolSize = 10) public void put_message_to_node_1_if_api2x_code_eq_DT_SYS() throws Exception { Map<String, String> data = new HashMap<String, String>(); data.put("node", "node1"); BiserConveyorClient.newInstance() .send( BCRequest.Builder.create() .addType(BCRequest.Type.SEARCH) .addCode("DT_SYS") .addCompany(123456) .addParameters(data) .addPoint("1") .addSession("sesion") .build()); }
@Test(groups = "stress", invocationCount = 10000, threadPoolSize = 10) public void put_message_to_node_2_if_both_codes_eq_DT_OK_and_both_packs_the_same() throws Exception { Map<String, String> data = new HashMap<String, String>(); data.put("node", "node2"); BiserConveyorClient.newInstance() .send( BCRequest.Builder.create() .addType(BCRequest.Type.SEARCH) .addCode("DT_OK") .addCompany(123456) .addObject("DebtPack") .addParameters(data) .addPoint("1") .addSession("session") .build()); }