fixed
test
This commit is contained in:
parent
285edbee26
commit
7fcac63be5
|
@ -29,7 +29,7 @@ public class NoAuthProbeDAOTest {
|
||||||
@Test
|
@Test
|
||||||
public void testFindTempKey() {
|
public void testFindTempKey() {
|
||||||
|
|
||||||
NoAuthProbe probe = this.noAuthProbeDAO.findByTempKey("1cf2555c57d511e79714080027658d13");
|
NoAuthProbe probe = this.noAuthProbeDAO.findByTempProbeKey("1cf2555c57d511e79714080027658d13");
|
||||||
|
|
||||||
|
|
||||||
Assert.assertNotEquals(probe, null);
|
Assert.assertNotEquals(probe, null);
|
||||||
|
@ -64,7 +64,7 @@ public class NoAuthProbeDAOTest {
|
||||||
@Test
|
@Test
|
||||||
public void update() {
|
public void update() {
|
||||||
|
|
||||||
NoAuthProbe probe = this.noAuthProbeDAO.findByTempKey("1cf2555c57d511e79714080027658d13");
|
NoAuthProbe probe = this.noAuthProbeDAO.findByTempProbeKey("1cf2555c57d511e79714080027658d13");
|
||||||
|
|
||||||
probe.setStatus(AuthType.A);
|
probe.setStatus(AuthType.A);
|
||||||
|
|
||||||
|
@ -75,8 +75,10 @@ public class NoAuthProbeDAOTest {
|
||||||
@Test
|
@Test
|
||||||
public void list() {
|
public void list() {
|
||||||
|
|
||||||
|
Domain domain = new Domain();
|
||||||
|
domain.setId(1);
|
||||||
|
|
||||||
List<NoAuthProbe> probes = this.noAuthProbeDAO.findAllByDomainId(1);
|
List<NoAuthProbe> probes = this.noAuthProbeDAO.findAllByDomain(domain);
|
||||||
|
|
||||||
|
|
||||||
Assert.assertNotEquals(probes.size(), 0);
|
Assert.assertNotEquals(probes.size(), 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user