Merge branch 'master' of https://git.loafle.net/overflow/overflow_server
This commit is contained in:
commit
c16cb8e81d
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user