ValuedEnumTestCase.java Log: Added first tests for ValuedEnum. It has some weird (imo) behaviour...
Look at the test conditions .. I agree.
public static final Color RED = new Color( "Red", 0 ); public static final Color RED_NEGATIVE = new Color( "Red", -1 );
// todo: is this _really_ desired? assertTrue( Color.RED.equals( Color.RED_NEGATIVE ) ); assertTrue( Color.RED_NEGATIVE.equals( Color.RED ) ); assertTrue( OtherColor.RED.equals( OtherColor.RED_NEGATIVE ) ); assertTrue( OtherColor.RED_NEGATIVE.equals( OtherColor.RED ) );
Have never looked at or used this code ... what are your thoughts?
Steve.
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]