added noauthprobe readByTempKey
This commit is contained in:
parent
4d09710884
commit
03e8d2711c
|
@ -105,4 +105,8 @@ public class NoAuthProbeService {
|
||||||
this.noAuthProbeDAO.save(noAuthProbes);
|
this.noAuthProbeDAO.save(noAuthProbes);
|
||||||
return this.readAllByDomain(noAuthProbes.get(0).getDomain());
|
return this.readAllByDomain(noAuthProbes.get(0).getDomain());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public NoAuthProbe readByTempKey(String tempKey) {
|
||||||
|
return this.noAuthProbeDAO.findByTempProbeKey(tempKey);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,4 +133,13 @@ public class NoAuthProbeServiceTest {
|
||||||
System.out.println(sss[0]);
|
System.out.println(sss[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void readByTempKey() {
|
||||||
|
|
||||||
|
NoAuthProbe noAuthProbe = this.noAuthProbeService.readByTempKey("1cf2555c57d511e79714080027658d15");
|
||||||
|
|
||||||
|
Assert.assertNotEquals(noAuthProbe, null);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user