use of main.database.TableTuple in project Info-Evaluation by TechnionYP5777.
the class AnalyzeParagraphTest method test5.
@Test
public void test5() {
final Sentence sent = new Sentence("Axl Rose was arrested after driving drunk in New Zeland on March 1.");
final TableTuple tt = new AnalyzeParagragh(sent, "2015").Analyze();
assertEquals("Axl Rose", tt.getName());
assertEquals("driving drunk in New Zeland", tt.getReason());
assertEquals("03/01/2015", tt.getDate());
}
use of main.database.TableTuple in project Info-Evaluation by TechnionYP5777.
the class AnalyzeParagraphTest method test6.
@Test
public void test6() {
final Sentence sent = new Sentence("Joe Francis was arrested for attacking at a Nightclub on May 16.");
final TableTuple tt = new AnalyzeParagragh(sent, "2015").Analyze();
assertEquals("Joe Francis", tt.getName());
assertEquals("attacking at Nightclub", tt.getReason());
assertEquals("05/16/2015", tt.getDate());
}
Aggregations