Package ch.deif.meander.util

Source Code of ch.deif.meander.util.ColorsTest

package ch.deif.meander.util;

import static org.junit.Assert.assertEquals;

import java.awt.Color;

import org.codemap.util.MColor;
import org.junit.Test;




public class ColorsTest {
 
  @Test
  public void compareColorValues() {
    assertEquals(Color.BLUE.getRGB(), new MColor(0,0,255).asRGB());
    assertEquals(new Color(123, 123, 123).getRGB(), new MColor(123, 123, 123).asRGB());
  }
 
}
TOP

Related Classes of ch.deif.meander.util.ColorsTest

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.