[Schmitzm-commits] r845 - trunk/src_junit/schmitzm/swing
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed May 19 14:47:34 CEST 2010
Author: alfonx
Date: 2010-05-19 14:47:32 +0200 (Wed, 19 May 2010)
New Revision: 845
Added:
trunk/src_junit/schmitzm/swing/SwingUtilTest.java
Log:
TestSwingUtil in SwingUtilTest umbenannt => Hatte die Konvention vergessen...
Copied: trunk/src_junit/schmitzm/swing/SwingUtilTest.java (from rev 844, trunk/src_junit/schmitzm/swing/TestSwingUtil.java)
===================================================================
--- trunk/src_junit/schmitzm/swing/TestSwingUtil.java 2010-05-19 12:41:02 UTC (rev 844)
+++ trunk/src_junit/schmitzm/swing/SwingUtilTest.java 2010-05-19 12:47:32 UTC (rev 845)
@@ -0,0 +1,25 @@
+package schmitzm.swing;
+
+import static org.junit.Assert.*;
+
+import java.awt.Color;
+
+import org.junit.Test;
+
+public class SwingUtilTest {
+
+ @Test
+ public void testConvertColorToHexColorBooleanBoolean() {
+ assertEquals("#ff0000ff", SwingUtil.convertColorToHex(Color.RED, true,
+ true));
+ assertEquals("#00ff00", SwingUtil.convertColorToHex(Color.GREEN, false,
+ true));
+ assertEquals("0000ff", SwingUtil.convertColorToHex(Color.BLUE, false,
+ false));
+ }
+
+ @Test
+ public void testConvertColorToHexColor() {
+ assertEquals("#0000ff", SwingUtil.convertColorToHex(Color.BLUE));
+ }
+}
\ No newline at end of file
Property changes on: trunk/src_junit/schmitzm/swing/SwingUtilTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id URL
Name: svn:eol-style
+ native
More information about the Schmitzm-commits
mailing list