Search in sources :

Example 11 with SearchRecordTypeDesc

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);
    }
}
Also used : SearchRecordTypeDesc(org.talend.components.netsuite.client.model.SearchRecordTypeDesc) NamedThing(org.talend.daikon.NamedThing) Test(org.junit.Test)

Aggregations

SearchRecordTypeDesc (org.talend.components.netsuite.client.model.SearchRecordTypeDesc)11 Test (org.junit.Test)8 RecordTypeInfo (org.talend.components.netsuite.client.model.RecordTypeInfo)7 ArrayList (java.util.ArrayList)5 Record (com.netsuite.webservices.test.platform.core.Record)3 SearchResult (com.netsuite.webservices.test.platform.core.SearchResult)3 Status (com.netsuite.webservices.test.platform.core.Status)3 SearchResponse (com.netsuite.webservices.test.platform.messages.SearchResponse)3 SearchResultSet (org.talend.components.netsuite.client.search.SearchResultSet)3 TestNetSuiteClientService (org.talend.components.netsuite.test.client.TestNetSuiteClientService)3 NamedThing (org.talend.daikon.NamedThing)3 AccountSearch (com.netsuite.webservices.test.lists.accounting.AccountSearch)2 RecordList (com.netsuite.webservices.test.platform.core.RecordList)2 SearchMoreWithIdResponse (com.netsuite.webservices.test.platform.messages.SearchMoreWithIdResponse)2 HashSet (java.util.HashSet)2 CustomRecordTypeInfo (org.talend.components.netsuite.client.model.CustomRecordTypeInfo)2 RecordTypeDesc (org.talend.components.netsuite.client.model.RecordTypeDesc)2 Account (com.netsuite.webservices.test.lists.accounting.Account)1 InventoryItem (com.netsuite.webservices.test.lists.accounting.InventoryItem)1 ItemSearch (com.netsuite.webservices.test.lists.accounting.ItemSearch)1