01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.util;
06:
07: import junit.framework.TestCase;
08:
09: public class UtilHashTest extends TestCase {
10:
11: public void testHash() {
12: int hashValue = Util.hash(new Integer(966330312), 10);
13: Assert.assertTrue(
14: "Hashcode 966330312 return negative hash value "
15: + hashValue, hashValue >= 0);
16: }
17: }
|