コード例 #1
0
 @Test
 public void testGetTaskPriorityByID() throws Exception {
   Optional<TaskPriority> optPriority = taskService.getTaskPriorityByID(1);
   assertTrue(optPriority.isPresent());
   TaskPriority prior = optPriority.get();
   assertNotNull(prior);
   assertEquals(1, prior.getId());
   assertNotNull(prior.getName());
 }
コード例 #2
0
 @BeforeClass
 public static void setUpClass() throws Exception {
   ABEntityTest.initDB();
   StorageSingleton.init(new StorageServiceImpl());
   taskService = new TaskServiceImpl();
   project = new ProjectServiceImpl().getProjectByID(1).get();
   user = new UserServiceImpl().findUserByID(1).get();
   assigneeUser = new UserServiceImpl().findUserByID(2).get();
   type = taskService.getTaskTypeByID(1).get();
   priority = taskService.getTaskPriorityByID(1).get();
   status = taskService.getTaskStatusByID(1).get();
 }