Package diva.util.jester

Examples of diva.util.jester.TestCase


    //// Test methods

    /** Test construction of XmlElement
     */
    public void testConstructor() {
        runTestCase(new TestCase("XmlElement constructor") {
            XmlElement elt;

            public void run() throws Exception {
                TreeMap attrs = new TreeMap();
                attrs.put("name0", "value0");
View Full Code Here


    }

    /** Test attribute setting, getting, and removing
     */
    public void testAttributes() {
        runTestCase(new TestCase("XmlElement attributes") {
            XmlElement elt;

            public void run() throws Exception {
                elt = new XmlElement("element");
                elt.setAttribute("name0", "value0");
View Full Code Here

    }

    /** Test children manipulation
     */
    public void testElements() {
        runTestCase(new TestCase("XmlElement children") {
            XmlElement elt0;

            XmlElement elt1;

            XmlElement elt2;
View Full Code Here

    //// Test methods

    /** Test bounds transformation
     */
    public void testTransformBounds() {
        runTestCase(new TestCase("TransformBounds") {
            Rectangle2D dr = new Rectangle2D.Double(10, 20, 30, 40);

            Rectangle2D dr1 = (Rectangle2D) dr.clone();

            Rectangle2D dr2 = (Rectangle2D) dr.clone();
View Full Code Here

    }

    /** Test general transformation
     */
    public void testTransformModify() {
        runTestCase(new TestCase("TransformModify") {
            int n = 6;

            Shape[] shapes = new Shape[n];

            Shape[] modified = new Shape[n];
View Full Code Here

    }

    /** Test rectangle transformation
     */
    public void testTransformModifyRect() {
        runTestCase(new TestCase("TransformModifyRect") {
            Rectangle2D dr = new Rectangle2D.Double(10, 20, 30, 40);

            Rectangle2D fr = new Rectangle2D.Float(10, 20, 30, 40);

            Ellipse2D er = new Ellipse2D.Double(10, 20, 30, 40);
View Full Code Here

    }

    /** Test translation
     */
    public void testTranslateModify() {
        runTestCase(new TestCase("TranslateModify") {
            int n = 6;

            Shape[] shapes = new Shape[n];

            Shape[] modified = new Shape[n];
View Full Code Here

TOP

Related Classes of diva.util.jester.TestCase

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.