Package test.rpc

Examples of test.rpc.IF2SOAP


        }
    }

    public void testGetAllCategories() {
        try {
            IF2SOAP soap = m_soap;
            String[] categories = soap.getAllCategories();
            assertNotNull("categories is null", categories);
            System.out.println("allCategories:");
            for (int i = 0; i < categories.length; i++)
                System.out.println("cat[" + i + "]: " + categories[i]);
        } catch (Exception e) {
View Full Code Here


        }
    }

    public void testGetBeansByCategory() {
        try {
            IF2SOAP soap = m_soap;
            IF1[] beans = soap.getBeansByCategory("Test");
            assertNotNull("beans is null", beans);
            System.out.println("beansByCategory:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

        }
    }

    public void testGetBeansByCategoryFiltered() {
        try {
            IF2SOAP soap = m_soap;
            String[] filter = new String[1];
            filter[0] = "11011011011";
            IF1[] beans = soap.getBeansByCategory("Test", filter);
            assertNotNull("beans is null", beans);
            System.out.println("beansByCategoryFiltered:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

        }
    }

    public void testGetBeansByDate() {
        try {
            IF2SOAP soap = m_soap;
            Calendar[] dates = new Calendar[1];
            dates[0] = new GregorianCalendar();
            IF1[] beans = soap.getBeansByDate(dates);
            assertNotNull("beans is null", beans);
            System.out.println("beansByDate:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

        }
    }

    public void testGetBeansByDateFiltered() {
        try {
            IF2SOAP soap = m_soap;
            String[] filter = new String[1];
            filter[0] = "11011011011";
            Calendar[] dates = new Calendar[1];
            dates[0] = new GregorianCalendar();
            IF1[] beans = soap.getBeansByDate(dates, filter);
            assertNotNull("beans is null", beans);
            System.out.println("beansByDateFiltered:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

        }
    }

    public void testGetBeansByExpression() {
        try {
            IF2SOAP soap = m_soap;
            IF1[] beans = soap.getBeansByExpression(IF2SOAP.KEYWORD_EXP, "keyword");
            assertNotNull("beans is null", beans);
            System.out.println("beansByExpression:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

        }
    }

    public void testGetBeansByExpressionFiltered() {
        try {
            IF2SOAP soap = m_soap;
            String[] filter = new String[1];
            filter[0] = "11011011011";
            IF1[] beans = soap.getBeansByExpression(IF2SOAP.KEYWORD_EXP, "keyword", filter);
            assertNotNull("beans is null", beans);
            System.out.println("beansByExpressionFiltered:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

        }
    }

    public void testGetXMLForBean() {
        try {
            IF2SOAP soap = m_soap;
            IF1 bean = soap.getBeanById("42042042042");
            String xml = soap.getXMLForBean(bean);
            assertNotNull("xml is null", xml);
            System.out.println("xmlForBean:");
            System.out.println("xml: " + xml);
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

    protected void tearDown() {
    } // tearDown

    public void testGetBeanById() {
        try {
            IF2SOAP soap = m_soap;
            IF1 bean = soap.getBeanById("42042042042");
            assertNotNull("bean is null", bean);
            System.out.println("beanById:");
            System.out.println("id: " + bean.getId());
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

        }
    }

    public void testGetAllBeans() {
        try {
            IF2SOAP soap = m_soap;
            IF1[] beans = soap.getAllBeans();
            assertNotNull("beans is null", beans);
            System.out.println("allBeans:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of test.rpc.IF2SOAP

Copyright © 2018 www.massapicom. 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.