From d40e41de5ae49debba0c29c045adca49f6b2a1e6 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 31 Oct 2012 16:21:56 -0400 Subject: [PATCH] the start of two tests --- .../java/com/redhat/trie/TestHuffNode.java | 18 ++++++++++++++++++ .../java/com/redhat/trie/TestNodeContext.java | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/test/java/com/redhat/trie/TestHuffNode.java create mode 100644 src/test/java/com/redhat/trie/TestNodeContext.java diff --git a/src/test/java/com/redhat/trie/TestHuffNode.java b/src/test/java/com/redhat/trie/TestHuffNode.java new file mode 100644 index 0000000..55f3215 --- /dev/null +++ b/src/test/java/com/redhat/trie/TestHuffNode.java @@ -0,0 +1,18 @@ +package com.redhat.trie; + +import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; + +public class TestHuffNode { + + @Test + public void testNew(){ + HuffNode hn = new HuffNode(new Object(), 1); + assertNotNull(hn); + } +} + + diff --git a/src/test/java/com/redhat/trie/TestNodeContext.java b/src/test/java/com/redhat/trie/TestNodeContext.java new file mode 100644 index 0000000..a31a1fa --- /dev/null +++ b/src/test/java/com/redhat/trie/TestNodeContext.java @@ -0,0 +1,18 @@ +package com.redhat.trie; + +import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; + +public class TestNodeContext { + + @Test + public void testNew(){ + NodeContext nc = new NodeContext(); + assertNotNull(nc); + } +} + +