Package limelight.styles.values

Source Code of limelight.styles.values.AlignedXCoordinateValueTest

//- Copyright © 2008-2011 8th Light, Inc. All Rights Reserved.
//- Limelight and all included source files are distributed under terms of the MIT License.

package limelight.styles.values;

import junit.framework.TestCase;
import limelight.styles.HorizontalAlignment;
import limelight.util.Box;

public class AlignedXCoordinateValueTest extends TestCase
{
  private AlignedXCoordinateValue center;

  public void setUp() throws Exception
  {
    center = new AlignedXCoordinateValue(HorizontalAlignment.CENTER);
  }

  public void testGetX() throws Exception
  {
    assertEquals(25, center.getX(50, new Box(0, 0, 100, 100)));
  }
}
TOP

Related Classes of limelight.styles.values.AlignedXCoordinateValueTest

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.