diff --git a/src/test/java/com/loafle/overflow/module/probe/service/ProbeServiceTest.java b/src/test/java/com/loafle/overflow/module/probe/service/ProbeServiceTest.java index 9aa640d..4baaab6 100644 --- a/src/test/java/com/loafle/overflow/module/probe/service/ProbeServiceTest.java +++ b/src/test/java/com/loafle/overflow/module/probe/service/ProbeServiceTest.java @@ -13,6 +13,8 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import java.util.List; + import static org.junit.Assert.*; /** @@ -55,11 +57,26 @@ public class ProbeServiceTest { @Ignore @Test public void readAllByDomain() throws Exception { + + Domain domain = new Domain(); + domain.setId(1); + + List probes = this.probeService.readAllByDomain(domain); + + Assert.assertNotEquals(probes.size(), 0); + } @Ignore @Test public void readByProbeKey() throws Exception { + + regist(); + + Probe probe = this.probeService.readByProbeKey("899fdd145bcc11e7b611080027658d13"); + + Assert.assertNotEquals(probe, null); + } } \ No newline at end of file