This commit is contained in:
insanity 2017-06-28 17:02:58 +09:00
commit c16cb8e81d

View File

@ -13,6 +13,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import java.util.List;
import static org.junit.Assert.*; import static org.junit.Assert.*;
/** /**
@ -55,11 +57,26 @@ public class ProbeServiceTest {
@Ignore @Ignore
@Test @Test
public void readAllByDomain() throws Exception { 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 @Ignore
@Test @Test
public void readByProbeKey() throws Exception { public void readByProbeKey() throws Exception {
regist();
Probe probe = this.probeService.readByProbeKey("899fdd145bcc11e7b611080027658d13");
Assert.assertNotEquals(probe, null);
} }
} }