added test
This commit is contained in:
parent
54bf0422f8
commit
252b6a9a97
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user