List of usage examples for junit.framework Assert assertEquals
static public void assertEquals(int expected, int actual)
From source file:edu.txstate.dmlab.clusteringwiki.cluster.ClusterDocumentComparisonTest.java
@Test public void testSimDocsFromResults() throws Exception { final CollectionContext ctx = getTestContext(); final IClusterDocument d1 = ctx.allDocs.get(1); final IClusterDocument d2 = ctx.allDocs.get(1); double sim = d1.computeSimilarity(d2); Assert.assertEquals(sim, 1.0D); }
From source file:jazsync.UploadTests.java
@Test public void testParseParams() throws IOException { String uploadString = version + blocksize + filelength + someKV + sha1 + relocString + rangeString; Upload um = Upload.parse(IOUtils.toInputStream(uploadString)); Assert.assertEquals(1024, um.getBlocksize()); Assert.assertEquals("testVersion", um.getVersion()); Assert.assertEquals(32768, um.getFilelength()); Assert.assertEquals("sha1checksum", um.getSha1()); }