Package org.waxeye.parser

Source Code of org.waxeye.parser.CacheKeyTest

/*
* Waxeye Parser Generator
* www.waxeye.org
* Copyright (C) 2008-2010 Orlando Hill
* Licensed under the MIT license. See 'LICENSE' for details.
*/
package org.waxeye.parser;

import org.testng.annotations.Test;

import org.waxeye.EqualsTester;

/**
* Tests for CacheKey.
*
* @author Orlando Hill
*/
public final class CacheKeyTest
{
    /** Test for equals(). */
    @Test
    public void testEquals()
    {
        // original object
        final Object a = new CacheKey(20, 20);

        // another object that has the same values as the original
        final Object b = new CacheKey(20, 20);

        // another object with different values
        final Object c = new CacheKey(6, 6);

        new EqualsTester(a, b, c, null);
    }
}
TOP

Related Classes of org.waxeye.parser.CacheKeyTest

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.