Created
October 24, 2010 17:51
-
-
Save thesurlydev/643722 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...imports omitted for brevity... | |
public class TrustDaoSqlMapTest extends AbstractTrkrCoreTests { | |
private static final Logger logger = Logger.getLogger(TrustDaoSqlMapTest.class); | |
private Date createdDate; | |
private List<Model> models; | |
private static boolean doSetup = true; | |
@Before | |
public void before() throws Exception { | |
createdDate = getMockCreatedDate(); | |
models = modelDaoSqlMap.getAll(); | |
if (doSetup) { | |
deleteFromTables("trkr_trust", "trkr_iioc_trust_calc", "trkr_iioc_trust" ); | |
executeSqlScript("classpath:sql/populate_trkr_trust.sql", false); | |
executeSqlScript("classpath:sql/populate_trkr_iioc_trust.sql", false); | |
doSetup = false; | |
} | |
} | |
@Test | |
public void testGetByCreated() throws Exception { | |
List<Trust> trusts = trustDaoSqlMap.getByCreated(createdDate); | |
doTrustAssertions(trusts); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment