优化航班历史转换代码
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
package com.gzzn.omms.msgexchangeapi.service.flightInfo;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.MOVEMENTINDICATOR;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.SCHD.FLTR;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class FlightHisServiceImplTest {
|
||||
|
||||
@Autowired
|
||||
private FlightHisServiceImpl flightHisServiceImpl;
|
||||
|
||||
@Test
|
||||
public void testIsCNCLMatch()
|
||||
{
|
||||
FLTR fltr = new FLTR();
|
||||
fltr.setMVIN(MOVEMENTINDICATOR.A);
|
||||
assertThat(fltr.getMVIN().equals(MOVEMENTINDICATOR.A));
|
||||
|
||||
|
||||
//flightHisServiceImpl.isAMatch(fltr);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.gzzn.omms.msgexchangeapi.utils;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class DateTimeUtilTest {
|
||||
|
||||
@Test
|
||||
public void testGetTodayStartTime()
|
||||
{
|
||||
System.out.println(DateTimeUtil.getTodayStartTime());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user