コード例 #1
0
 @Test
 public void shouldReturnAtLeastOneStatement() {
   StatementResult sr = statmentController.getStatement(null, null, null, null, null);
   Assert.assertNotNull(sr);
   List<Statement> statements = sr.getStatements();
   Assert.assertNotNull(statements);
   Assert.assertTrue(statements.size() > 0);
 }
コード例 #2
0
 @Test
 public void shouldReturnOneStatementWithGivenId() {
   Statement s = statmentController.getStatement(statement1Id, new HashMap<String, String>());
   Assert.assertNotNull(s);
 }