Package org.apache.tuscany.sca.implementation.java.impl

Examples of org.apache.tuscany.sca.implementation.java.impl.JavaParameterImpl


    public void testVisitConstructor() throws Exception {
        Constructor<Foo> ctor = Foo.class.getConstructor(String.class);
        JavaImplementation type = javaImplementationFactory.createJavaImplementation();
        JavaConstructorImpl<Foo> def = new JavaConstructorImpl<Foo>(ctor);
        JavaParameterImpl parameter = def.getParameters()[0];
        extension.visitConstructorParameter(parameter, type);
        assertEquals("test", def.getParameters()[0].getName());
        assertNotNull(getProperty(type, "test"));
    }
View Full Code Here


    public void testVisitConstructor() throws Exception {
        Constructor<Foo> ctor = Foo.class.getConstructor(String.class);
        JavaImplementation type = javaImplementationFactory.createJavaImplementation();
        JavaConstructorImpl<Foo> def = new JavaConstructorImpl<Foo>(ctor);
        JavaParameterImpl parameter = def.getParameters()[0];
        extension.visitConstructorParameter(parameter, type);
        assertEquals("test", def.getParameters()[0].getName());
        assertNotNull(getProperty(type, "test"));
    }
View Full Code Here

    public void testVisitConstructor() throws Exception {
        Constructor<Foo> ctor = Foo.class.getConstructor(String.class);
        JavaImplementation type = javaImplementationFactory.createJavaImplementation();
        JavaConstructorImpl<Foo> def = new JavaConstructorImpl<Foo>(ctor);
        JavaParameterImpl parameter = def.getParameters()[0];
        extension.visitConstructorParameter(parameter, type);
        assertEquals("test", def.getParameters()[0].getName());
        assertNotNull(getProperty(type, "test"));
    }
View Full Code Here

    public void testVisitConstructor() throws Exception {
        Constructor<Foo> ctor = Foo.class.getConstructor(String.class);
        JavaImplementation type = javaImplementationFactory.createJavaImplementation();
        JavaConstructorImpl<Foo> def = new JavaConstructorImpl<Foo>(ctor);
        JavaParameterImpl parameter = def.getParameters()[0];
        extension.visitConstructorParameter(parameter, type);
        assertEquals("test", def.getParameters()[0].getName());
        assertNotNull(getProperty(type, "test"));
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.implementation.java.impl.JavaParameterImpl

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.