added test

This commit is contained in:
snoop 2017-06-28 17:02:02 +09:00
parent 54bf0422f8
commit 252b6a9a97

View File

@ -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<Probe> 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);
}
}