测试学员:补齐学员单测桩updateTrainStudent方法实现以修复构建
This commit is contained in:
1 parent
b93ac3fa71
commit
1d57bdf0df
2 files changed
+22
No files matched your search
+11
@@ -1046,6 +1046,17 @@ public class EnrollmentAppServiceImplTest
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateTrainStudent(TrainStudent student)
|
||||
{
|
||||
if (student != null && student.getsId() != null)
|
||||
{
|
||||
studentStore.put(student.getsId(), student);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TrainStudent selectTrainStudentByUserId(Long userId)
|
||||
{
|
||||
|
||||
+11
@@ -307,6 +307,17 @@ public class TrainStudentServiceImplTest
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateTrainStudent(TrainStudent student)
|
||||
{
|
||||
if (student != null && student.getsId() != null)
|
||||
{
|
||||
store.put(student.getsId(), student);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TrainStudent selectTrainStudentByUserId(Long userId)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user