use of com.netsuite.webservices.v2014_2.lists.accounting.Account in project components by Talend.
the class NetSuiteClientServiceIT method testConnectAndLogin.
@Test
public void testConnectAndLogin() throws Exception {
NetSuiteClientService<?> connection = webServiceTestFixture.getClientService();
connection.login();
SearchResultSet<Record> rs = connection.newSearch().target("Account").condition(new SearchCondition("Type", "List.anyOf", Arrays.asList("Bank"))).search();
int count = 10;
int retrievedCount = 0;
while (rs.next() && count-- > 0) {
Record record = rs.get();
assertEquals(AccountType.BANK, getProperty(record, "acctType"));
retrievedCount++;
}
assertTrue(retrievedCount > 1);
}
Aggregations