| | |
| | | package mes; |
| | | |
| | | import com.mes.GlassStorageApplication; |
| | | import com.mes.rawusage.entity.RawUsage; |
| | | import com.mes.rawusage.service.RawUsageService; |
| | | import com.mes.shelfrack.entity.ShelfRack; |
| | | import com.mes.shelfrack.service.ShelfRackService; |
| | | import com.mes.storagetask.entity.StorageTask; |
| | | import com.mes.storagetask.service.StorageTaskService; |
| | | import com.mes.rawglassdetails.entity.RawGlassStorageDetails; |
| | | import com.mes.rawglassdetails.service.RawGlassStorageDetailsService; |
| | | import com.mes.rawglasstask.service.RawGlassStorageTaskService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | |
| | | import org.springframework.test.context.junit4.SpringRunner; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author : zhoush |
| | |
| | | @Slf4j |
| | | @RunWith(SpringRunner.class) |
| | | @SpringBootTest(classes = GlassStorageApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) |
| | | |
| | | public class GlassStorageModuleApplicationTest { |
| | | |
| | | |
| | | |
| | | @Autowired |
| | | private StorageTaskService storageTaskService; |
| | | private RawGlassStorageDetailsService rawGlassStorageDetailsService; |
| | | @Autowired |
| | | private ShelfRackService shelfRackService; |
| | | @Autowired |
| | | private RawUsageService rawUsageService; |
| | | |
| | | private RawGlassStorageTaskService rawGlassStorageTaskService; |
| | | |
| | | @Test |
| | | public void testFindPath() { |
| | |
| | | } |
| | | |
| | | @Test |
| | | public void testCacheGlass() { |
| | | // storageTaskService.getBaseMapper().selectById(1); |
| | | //StorageTask storageTask=new StorageTask(); |
| | | // storageTask.setId(Long.valueOf("1")); |
| | | // storageTask.setTaskState("1"); |
| | | // storageTaskService.updateById(storageTask); |
| | | // storageTaskService.getBaseMapper().deleteById(1); |
| | | // storageTaskService.findList(storageTask); |
| | | ///storageTaskService.findLatestTasks(); |
| | | storageTaskService.Tasks(); |
| | | } |
| | | @Test |
| | | public void selectshelf_rack() { |
| | | |
| | | shelfRackService.selectshelf_rack(); |
| | | } |
| | | |
| | | |
| | | |
| | | @Test |
| | | public void updateRawPackageAndStorageRack() { |
| | | RawUsage raw=new RawUsage(); |
| | | |
| | | raw.setId(null); |
| | | rawUsageService.updateRawPackageAndStorageRack(raw); |
| | | public void txt() { |
| | | RawGlassStorageDetails rs=new RawGlassStorageDetails(); |
| | | rs.setId(105L); |
| | | List<RawGlassStorageDetails> aa=rawGlassStorageDetailsService.selectDetails(); |
| | | log.info(String.valueOf(aa)); |
| | | } |
| | | |
| | | |