use of org.talend.components.netsuite.client.model.SearchRecordTypeDesc in project components by Talend.
the class NetSuiteClientServiceIT method testGetSearchableTypes.
@Test
public void testGetSearchableTypes() throws Exception {
NetSuiteClientService<?> connection = webServiceTestFixture.getClientService();
connection.login();
Collection<NamedThing> searches = connection.getMetaDataSource().getSearchableTypes();
for (NamedThing search : searches) {
assertNotNull(search);
assertNotNull(search.getName());
assertNotNull(search.getDisplayName());
SearchRecordTypeDesc searchRecordInfo = connection.getMetaDataSource().getSearchRecordType(search.getName());
assertNotNull("Search record def found: " + search.getName(), searchRecordInfo);
}
}
Aggregations