Examples of InheritableMarker


Examples of booton.translator.annotation.InheritableMarker

        assert a2.value().equals("value");
    }

    @Test
    public void inheritable() throws Exception {
        InheritableMarker annotation = Base.class.getAnnotation(InheritableMarker.class);
        assert annotation != null;
        assert annotation.value().equals("parent");
        assert annotation == Parent.class.getAnnotation(InheritableMarker.class);

        annotation = Child.class.getAnnotation(InheritableMarker.class);
        assert annotation != null;
        assert annotation.value().equals("child");
        assert annotation != Parent.class.getAnnotation(InheritableMarker.class);
    }
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.