Examples of SearchFor


Examples of org.erlide.engine.services.search.SearchFor

                try {
                    limitTo = LimitTo.valueOf(settings.get("limitTo")); // //$NON-NLS-1$
                } catch (final IllegalArgumentException e) {
                    limitTo = LimitTo.REFERENCES;
                }
                SearchFor searchFor;
                try {
                    searchFor = SearchFor.valueOf(settings.get("searchFor")); // //$NON-NLS-1$
                } catch (final IllegalArgumentException e) {
                    searchFor = SearchFor.FUNCTION;
                }
View Full Code Here

Examples of org.erlide.engine.services.search.SearchFor

        }
        final ErlangSearchPattern pattern = SearchUtil
                .getSearchPatternFromOpenResultAndLimitTo(res, module, offset,
                        LimitTo.REFERENCES, true);
        final String patternString = pattern == null ? "" : pattern.patternString();
        final SearchFor searchFor = pattern == null ? SearchFor.FUNCTION : pattern
                .getSearchFor();
        final SearchPatternData searchPatternData = new SearchPatternData(patternString,
                ISearchPageContainer.WORKSPACE_SCOPE, LimitTo.REFERENCES, searchFor,
                null, SearchUtil.SEARCH_IN_SOURCES);
        return searchPatternData;
View Full Code Here

Examples of org.talend.types.demos.library.common._1.SearchFor

        // a list of books
        System.out.println("***************************************************************");
        System.out.println("*** Request-Response operation ********************************");
        System.out.println("***************************************************************");
        System.out.println("\nSending request for authors named Icebear");
        SearchFor request = new SearchFor();
        request.getAuthorLastName().add("Icebear");
        ListOfBooks response = libraryHttp.seekBook(request);
        System.out.println("\nResponse received:");
        Utils.showBooks(response);


View Full Code Here

Examples of org.talend.types.demos.library.common._1.SearchFor

        // Test for an unknown Customer name and expect the NoSuchCustomerException
        System.out.println("***************************************************************");
        System.out.println("*** Request-Response operation with Business Fault ************");
        System.out.println("***************************************************************");
        try {
            SearchFor request = new SearchFor();
            System.out.println("\nSending request for authors named Grizzlybear");
            request.getAuthorLastName().add("Grizzlybear");
            ListOfBooks response = libraryHttp.seekBook(request);

            System.out.println("FAIL: We should get a SeekBookError here");

        } catch (SeekBookError e) {
View Full Code Here

Examples of org.talend.types.test.library.common._1.SearchFor

        String configFileName = "conf/feature-test/"+dir+"/service-context.xml";
        return startContext(configFileName);
    }

    private ListOfBooks searchFor(String authorLastName, Library client) throws SeekBookError {
        SearchFor request = new SearchFor();
        request.getAuthorLastName().add(authorLastName);
        return  client.seekBook(request);
    }
View Full Code Here

Examples of org.talend.types.test.library.common._1.SearchFor

        // a list of books
        System.out.println("***************************************************************");
        System.out.println("*** Request-Response operation ********************************");
        System.out.println("***************************************************************");
        System.out.println("\nSending request for authors named Icebear");
        SearchFor request = new SearchFor();
        request.getAuthorLastName().add("Icebear");
        ListOfBooks response = libraryHttp.seekBook(request);
        System.out.println("\nResponse received:");


        if (response.getBook().size() != 1) {
View Full Code Here

Examples of org.talend.types.test.library.common._1.SearchFor

        // Test for an unknown Customer name and expect the NoSuchCustomerException
        System.out.println("***************************************************************");
        System.out.println("*** Request-Response operation with Business Fault ************");
        System.out.println("***************************************************************");
        try {
            SearchFor request = new SearchFor();
            System.out.println("\nSending request for authors named Grizzlybear");
            request.getAuthorLastName().add("Grizzlybear");
            ListOfBooks response = libraryHttp.seekBook(request);

            System.out.println("FAIL: We should get a SeekBookError here");

        } catch (SeekBookError e) {
View Full Code Here

Examples of org.talend.types.test.library.common._1.SearchFor

        String configFileName = "conf/assertion-test/"+dir+"/service-context.xml";
        return startContext(configFileName);
    }

    private ListOfBooks searchFor(String authorLastName, Library client) throws SeekBookError {
        SearchFor request = new SearchFor();
        request.getAuthorLastName().add(authorLastName);
        return  client.seekBook(request);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.