This commit is contained in:
crusader 2018-06-21 22:02:51 +09:00
parent c9d5d19706
commit 61c55c035b

View File

@ -21,7 +21,6 @@ import java.util.List;
import static org.junit.Assert.*; import static org.junit.Assert.*;
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ActiveProfiles("test") @ActiveProfiles("test")
@ContextConfiguration(classes = { AppConfigTest.class }) @ContextConfiguration(classes = { AppConfigTest.class })
@ -49,10 +48,10 @@ public class CentralTargetServiceTest {
List<Target> targets = new ArrayList<>(); List<Target> targets = new ArrayList<>();
List<Sensor> sensors = new ArrayList<>(); List<Sensor> sensors = new ArrayList<>();
List<MetaCrawler> metaCrawlers = this.metaCrawlerService.readAll(); List<MetaCrawler> metaCrawlers = this.metaCrawlerService.readAll();
List<MetaSensorStatus> metaSensorStatusList = this.metaSensorStatusService.readAll(); List<MetaSensorStatus> metaSensorStatusList = this.metaSensorStatusService.readAll();
// MetaSensorDisplayItem metaSensorDisplayItem = this.metaSensorDisplayItemService.read(Long.valueOf(1)); // MetaSensorDisplayItem metaSensorDisplayItem =
// this.metaSensorDisplayItemService.read(Long.valueOf(1));
Target target = new Target(); Target target = new Target();
target.setMetaTargetType(MetaTargetServiceType.Enum.UNKNOWN.to()); target.setMetaTargetType(MetaTargetServiceType.Enum.UNKNOWN.to());
@ -71,8 +70,9 @@ public class CentralTargetServiceTest {
target.setSensors(sensors); target.setSensors(sensors);
targets.add(target); targets.add(target);
List<Target> targetList = this.targetService.registAll(targets, Long.valueOf(1)); // List<Target> targetList = this.targetService.registAll(targets,
// Long.valueOf(1));
System.out.println("Target List Size: " + targetList.size()); // System.out.println("Target List Size: " + targetList.size());
} }
} }