package org.sorenle.partitioner;

public class Murmur3BuilderTest {
}

@@ -31,40 +31,792 @@
 r;%0A%0A
-public class Murmur3BuilderTest %7B
+import com.google.common.hash.Hashing;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0Apublic class Murmur3BuilderTest %7B%0A%0A%0A    @Test%0A    public void test128BitPartitioner()%7B%0A        Murmur3Partitioner murmur3Partitioner = Murmur3Builder.create128BitHasher();%0A        long hashExpected = Hashing.murmur3_128().newHasher().putInt(0).hash().padToLong();%0A        long hash = murmur3Partitioner.getHash(0);%0A%0A        assertEquals(hash,hashExpected);%0A%0A    %7D%0A%0A    @Test%0A    public void test32BitPartitioner()%7B%0A        Murmur3Partitioner murmur3Partitioner = Murmur3Builder.create32BitHasher();%0A        long hashExpected = Hashing.murmur3_32().newHasher().putInt(0).hash().padToLong();%0A        long hash = murmur3Partitioner.getHash(0);%0A%0A        assertEquals(hash,hashExpected);%0A%0A    %7D
 %0A%7D%0A

Test class for Murmur3Builder