/*
 * $Id$
 * $Revision$
 * $Date$
 *
 * ====================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package wicket.util.time;


import junit.framework.Assert;
import junit.framework.TestCase;

/**
 * Test cases for this object
 * @author Jonathan Locke
 */
public final class TimeOfDayTest extends TestCase
{
    /**
     * 
     */
    public void test()
    {
        Assert.assertTrue(TimeOfDay.MIDNIGHT.hour() == 0);
        Assert.assertTrue(TimeOfDay.valueOf(TimeOfDay.MIDNIGHT.next()).equals(TimeOfDay.MIDNIGHT));

        final TimeOfDay three = TimeOfDay.time(3, 0, TimeOfDay.PM);
        final TimeOfDay five = TimeOfDay.time(5, 0, TimeOfDay.PM);

        Assert.assertTrue(five.after(three));
    }
}



@@ -934,37 +934,42 @@
    Assert.assert
-True(
+Equals(0, 
 TimeOfDay.MIDNIG
@@ -981,13 +981,8 @@
 ur()
- == 0
 );%0A 
@@ -1001,21 +1001,43 @@
 t.assert
-True(
+Equals(TimeOfDay.MIDNIGHT, 
 TimeOfDa
@@ -1076,35 +1076,8 @@
 t())
-.equals(TimeOfDay.MIDNIGHT)
 );%0A%0A

Use the appropriate methods for checking equality. This gives better results when debugging the errors.