完成登机桥逻辑处理
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
package com.gzzn.omms.msgexchangeapi.basicdata;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonParseException;
|
||||
import com.fasterxml.jackson.databind.JsonMappingException;
|
||||
import com.gzzn.omms.msgexchangeapi.basicdata.manager.OrmsStandAirbridgeManager;
|
||||
import com.gzzn.omms.msgexchangeapi.config.TestRestTemplateConfig;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes=TestRestTemplateConfig.class)
|
||||
public class OrmsStandAirbridgeManagerTest {
|
||||
|
||||
@Test
|
||||
public void testFindAll() throws JsonParseException, JsonMappingException, IOException
|
||||
{
|
||||
List<String> ls = OrmsStandAirbridgeManager.getInstance().getAirbridgeCodeByStandCodeCode("147");
|
||||
assertThat(ls).isNotNull();
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,12 @@ public class OrmsStandServiceImplTest {
|
||||
assertThat(lsOrmsStands).isNotEmpty();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testGetAirbridgeCodeByStandCode()
|
||||
{
|
||||
List<String> ls = ormsStandService.getAirbridgeCodeByStandCode("147");
|
||||
assertThat(ls).isNotEmpty()
|
||||
.hasSize(2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user