package nl.tudelft.simulation.dsol.logger; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; import org.junit.Test; /** * CatTest.java. *
* Copyright (c) 2019-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See DJUNITS License.
*
* @author Alexander Verbraeck */ public class CatTest { /** * Test the Cat class. */ @Test public void testCat() { assertEquals("LogCategory.DSOL", Cat.DSOL.toString()); assertEquals("LogCategory.EVENT", Cat.EVENT.toString()); assertEquals("LogCategory.HLA", Cat.HLA.toString()); assertEquals("LogCategory.NAMING", Cat.NAMING.toString()); assertEquals("LogCategory.SWING", Cat.SWING.toString()); assertEquals("LogCategory.WEB", Cat.WEB.toString()); assertNotEquals(Cat.DSOL, Cat.EVENT); assertNotEquals(Cat.DSOL.hashCode(), Cat.EVENT.hashCode()); } }