PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/db-extract/src/test/java/com/googlecode/hdbc/RelatednessTest.java

http://hdbc.googlecode.com/
Java | 22 lines | 18 code | 4 blank | 0 comment | 0 complexity | f06547bda5cc0c5c0d9f63df4c75a5f9 MD5 | raw file
 1package com.googlecode.hdbc;
 2
 3import static org.junit.Assert.*;
 4import org.junit.Test;
 5
 6public class RelatednessTest {
 7
 8	@Test
 9	public final void testColumnRelatedness() {
10		final int expected = 3;
11		Relatedness rltness = new Relatedness();
12		int actual = rltness.columnRelatedness("kitten", "sitting");
13		assertEquals(expected, actual);
14	}
15
16	@Test
17	public final void testColumnRelatedness2() {
18		Relatedness rltness = new Relatedness();
19		int actual = rltness.columnRelatedness("kitten", "tens");
20		assertEquals(4, actual);
21	}
22}