Examples of Foo


Examples of org.apache.cxf.systest.jaxws.DocLitWrappedCodeFirstService.Foo

        g.value = "g";
        return ret;
    }

    public List<Foo> listObjectOutput() {
        Foo a = new Foo();
        a.setName("a");
        Foo b = new Foo();
        b.setName("b");
        return Arrays.asList(a, b);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxws.DocLitWrappedCodeFirstService.Foo

    public Set<Foo> getFooSet() {
        return new LinkedHashSet<Foo>(listObjectOutput());
    }

    public List<Foo[]> listObjectArrayOutput() {
        Foo a = new Foo();
        a.setName("a");
        Foo b = new Foo();
        b.setName("b");
        Foo c = new Foo();
        c.setName("c");
        Foo d = new Foo();
        d.setName("d");
       
        return Arrays.asList(new Foo[] {a, b}, new Foo[] {c, d});
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxws.DocLitWrappedCodeFirstService.Foo

        CXF2411Result<CXF2411SubClass> o = port.doCXF2411();
        assertNotNull(o);
        assertNotNull(o.getContent());
        Object[] ar = o.getContent();
        assertTrue(ar[0] instanceof CXF2411SubClass);
        Foo foo = new Foo();
        foo.setName("blah");
        assertEquals("blah", port.modifyFoo(foo).getName());

        assertEquals("hello", port.outOnly(new Holder<String>(), new Holder<String>()));
       
        long start = System.currentTimeMillis();
View Full Code Here

Examples of org.apache.cxf.systest.jaxws.DocLitWrappedCodeFirstService.Foo

        } catch (ComplexException ex) {
            assertEquals("Throw user fault -3", ex.getMessage());
        }   
       
        try {
            Foo foo = new Foo();
            foo.setNameIgnore("DoNoName");
            port.modifyFoo(foo);
            fail("Expected exception not found");
        } catch (SOAPFaultException ex) {
            assertTrue(ex.getMessage().contains("NoName is not a valid name"));
        }   
        try {
            Foo foo = new Foo();
            foo.setNameIgnore("NoName");
            port.modifyFoo(foo);
            fail("Expected exception not found");
        } catch (SOAPFaultException ex) {
            assertTrue(ex.getMessage().contains("NoName is not a valid name"));
        }   
View Full Code Here

Examples of org.apache.cxf.systest.jaxws.DocLitWrappedCodeFirstService.Foo

        CXF2411Result<CXF2411SubClass> o = port.doCXF2411();
        assertNotNull(o);
        assertNotNull(o.getContent());
        Object[] ar = o.getContent();
        assertTrue(ar[0] instanceof CXF2411SubClass);
        Foo foo = new Foo();
        foo.setName("blah");
        assertEquals("blah", port.modifyFoo(foo).getName());
       

        assertEquals("hello", port.outOnly(new Holder<String>(), new Holder<String>()));
       
View Full Code Here

Examples of org.apache.cxf.systest.jaxws.DocLitWrappedCodeFirstService.Foo

        } catch (ComplexException ex) {
            assertEquals("Throw user fault -3", ex.getMessage());
        }   
       
        try {
            Foo foo = new Foo();
            foo.setNameIgnore("DoNoName");
            port.modifyFoo(foo);
            fail("Expected exception not found");
        } catch (SOAPFaultException ex) {
            assertTrue(ex.getMessage().contains("NoName is not a valid name"));
        }   
        try {
            Foo foo = new Foo();
            foo.setNameIgnore("NoName");
            port.modifyFoo(foo);
            fail("Expected exception not found");
        } catch (SOAPFaultException ex) {
            assertTrue(ex.getMessage().contains("NoName is not a valid name"));
        }   
View Full Code Here

Examples of org.apache.openjpa.persistence.criteria.results.Foo

        }
        em.persist(s);
        Person person = new Person("Test Result Shape");
        em.persist(person);
       
        Foo foo = new Foo(100L, "Test Foo");
        Bar bar = new Bar(200L, "Test Bar");
        foo.setBar(bar);
        em.persist(foo);
        em.persist(bar);
        em.getTransaction().commit();
        em.close();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo

        throw new ServiceRuntimeException(response);
    }   

    public Foo getGreetingsComplex(Foo foo){
        System.out.println("Entering SCA HelloWorld1.getGreetingsComplex: " + foo.getBars().get(0).getS());
        Foo response = helloWorld2.getGreetingsComplex(foo);
        System.out.println("Leaving SCA HelloWorld1.getGreetingsComplex: " + foo.getBars().get(0).getS());
        return response;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo

        assertEquals("Hello Fred", externalClient.getGreetings("Fred"));
    }
       
    @Test
    public void testGetGreetingsComplex() throws Exception {       
        Foo f = new Foo();
        Bar b1 = new Bar();
        b1.setS("petra");
        b1.setX(1);
        b1.setY(new Integer(2));
        b1.setB(Boolean.TRUE);
        Bar b2 = new Bar();
        b2.setS("beate");
        b2.setX(3);
        b2.setY(new Integer(4));
        b2.setB(Boolean.FALSE);
        f.getBars().add(b1);
        f.getBars().add(b2);
      
        Foo f2 = externalClient.getGreetingsComplex(f);

        assertEquals("petra", f2.getBars().get(0).getS());
        assertEquals(1, f2.getBars().get(0).getX());
        assertEquals(2, f2.getBars().get(0).getY().intValue());
        assertTrue(f2.getBars().get(0).isB());
        assertEquals("simon", f2.getBars().get(2).getS());
        assertEquals(7, f2.getBars().get(2).getX());
        assertEquals(8, f2.getBars().get(2).getY().intValue());
        assertTrue(f2.getBars().get(2).isB().booleanValue());
   
View Full Code Here

Examples of org.apache.webbeans.newtests.interceptors.resolution.beans.Foo

        Assert.assertEquals(TestInterceptor1.invocationCount, 1);
        Assert.assertEquals(instance.getValue(), "test1");

        // Cast FooImpl to Foo, testing if the call becoming doSomething(Object)
        // breaks the interception
        Foo castInstance = (Foo) instance;
        castInstance.doSomething("test2");

        // Ensure the method call on to doSomethign(Object) was intercepted, and
        // value was set
        Assert.assertEquals(TestInterceptor1.invocationCount, 2);
        Assert.assertEquals(instance.getValue(), "test2");
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.