@Test public void testWithAdditionalParametersOptional() { ExtDirectStoreReadResult<Row> rows = (ExtDirectStoreReadResult<Row>) ControllerUtil.sendAndReceive( mockMvc, "remoteProviderStoreReadDeprecated", "method7", new TypeReference<ExtDirectStoreReadResult<Row>>() { /* nothing_here */ }); RouterControllerStoreReadTest.assert100Rows(new ArrayList<Row>(rows.getRecords()), ":null"); Map<String, Object> readRequest = new HashMap<String, Object>(); readRequest.put("id", 11); readRequest.put("query", ""); rows = (ExtDirectStoreReadResult<Row>) ControllerUtil.sendAndReceive( mockMvc, "remoteProviderStoreReadDeprecated", "method7", new TypeReference<ExtDirectStoreReadResult<Row>>() { /* nothing_here */ }, readRequest); RouterControllerStoreReadTest.assert100Rows(new ArrayList<Row>(rows.getRecords()), ":11"); }
@Test public void testNoArgumentsNoRequestParameters() { ExtDirectStoreReadResult<Row> rows = (ExtDirectStoreReadResult<Row>) ControllerUtil.sendAndReceive( mockMvc, "remoteProviderStoreReadDeprecated", "method1", new TypeReference<ExtDirectStoreReadResult<Row>>() { /* nothing_here */ }); RouterControllerStoreReadTest.assert100Rows(new ArrayList<Row>(rows.getRecords()), ""); }
@Test public void testSupportedArguments() { ExtDirectStoreReadResult<Row> rows = (ExtDirectStoreReadResult<Row>) ControllerUtil.sendAndReceive( mockMvc, "remoteProviderStoreReadDeprecated", "method3", new TypeReference<ExtDirectStoreReadResult<Row>>() { // nothing // here }); RouterControllerStoreReadTest.assert100Rows( new ArrayList<Row>(rows.getRecords()), ":true;true:true;en"); }