完成登机桥逻辑处理

This commit is contained in:
zhouxiunai
2019-02-26 09:16:03 +08:00
parent 9c40aa791c
commit 6d90f7e4e7
10 changed files with 161 additions and 17 deletions
@@ -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);
}
}