Package flash.swf.tags

Examples of flash.swf.tags.DefineText


public class TextBuilder
        implements TagBuilder
{
    public TextBuilder(int code)
    {
        tag = new DefineText(code);
        fontBuilders = new ArrayList<FontBuilder>();
    }
View Full Code Here


        return new TestSuite(DefineTextTest.class);
    }

    public void testEqualsPositive()
    {
        DefineText defineText1 = new DefineText(DefineText.stagDefineText2);
        DefineText defineText2 = new DefineText(DefineText.stagDefineText2);
        assertEquals("defineText1 should be equal to defineText2",
                     defineText1, defineText2);
    }
View Full Code Here

                     defineText1, defineText2);
    }

    public void testEqualsNegative()
    {
        DefineText defineText1 = new DefineText(DefineText.stagDefineText);
        DefineText defineText2 = new DefineText(DefineText.stagDefineText2);
        assertFalse("defineText1 should not be equal to defineText2",
                    defineText1.equals(defineText2));
    }
View Full Code Here

                    defineText1.equals(defineText2));
    }

    public void testHashCodePositive()
    {
        DefineText defineText1 = new DefineText(DefineText.stagDefineText2);
        DefineText defineText2 = new DefineText(DefineText.stagDefineText2);       
        assertEquals("the two hash codes should be equal",
                     defineText1.hashCode(), defineText2.hashCode());
    }
View Full Code Here

                     defineText1.hashCode(), defineText2.hashCode());
    }

    public void testHashCodeNegative()
    {
        DefineText defineText1 = new DefineText(DefineText.stagDefineText);
        DefineText defineText2 = new DefineText(DefineText.stagDefineText2);       
        assertFalse("the two hash codes should not be equal",
                    defineText1.hashCode() == defineText2.hashCode());
    }
View Full Code Here

TOP

Related Classes of flash.swf.tags.DefineText

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.