Package org.osoa.sca.annotations

Examples of org.osoa.sca.annotations.Constructor


/**
* @version $Rev: 430937 $ $Date: 2006-08-11 18:17:56 -0700 (Fri, 11 Aug 2006) $
*/
public class ConstructorAnnotationTest extends TestCase {
    public void testSingleName() throws NoSuchMethodException {
        Constructor ann = Foo1.class.getConstructor(String.class).getAnnotation(Constructor.class);
        assertNotNull(ann);
        String[] names = ann.value();
        assertTrue(Arrays.equals(new String[]{"prop"}, names));
    }
View Full Code Here


        String[] names = ann.value();
        assertTrue(Arrays.equals(new String[]{"prop"}, names));
    }

    public void testMultipleNames() throws NoSuchMethodException {
        Constructor ann = Foo1.class.getConstructor(String.class, String.class).getAnnotation(Constructor.class);
        assertNotNull(ann);
        String[] names = ann.value();
        assertTrue(Arrays.equals(new String[]{"prop", "ref"}, names));
    }
View Full Code Here

TOP

Related Classes of org.osoa.sca.annotations.Constructor

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.