// @Test public void create() throws Exception { AdminPassword adminPassword = AdminPasswordFactory.createAdminPassword("admin", "password"); repository.save(adminPassword); username = adminPassword.getUsername(); Assert.assertEquals(adminPassword.getPassword(), "password"); }
// @Test(dependsOnMethods = "create") public void read() throws Exception { AdminPassword adminPassword = repository.findOne(username); Assert.assertNotNull(adminPassword.getPassword()); }