@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); }
@Test public void shouldReturnOneStatementWithGivenId() { Statement s = statmentController.getStatement(statement1Id, new HashMap<String, String>()); Assert.assertNotNull(s); }