增加 后端,后台管理系统,uniapp会员端的自动化测试。
This commit is contained in:
+4
-4
@@ -107,10 +107,10 @@ public class GroupCourseService implements IGroupCourseService {
|
||||
return Mono.<GroupCourseDetail>just(detail);
|
||||
} catch (JsonProcessingException e) {
|
||||
logger.warn("缓存解析失败,删除缓存 - id: {}, error: {}", id, e.getMessage());
|
||||
return redisUtil.delete(cacheKey).then(Mono.empty());
|
||||
return redisUtil.delete(cacheKey).then(Mono.<GroupCourseDetail>empty());
|
||||
}
|
||||
}
|
||||
return Mono.empty();
|
||||
return Mono.<GroupCourseDetail>empty();
|
||||
})
|
||||
.switchIfEmpty(
|
||||
groupCourseRepository.findByIdAndDeletedAtIsNull(id)
|
||||
@@ -243,10 +243,10 @@ public class GroupCourseService implements IGroupCourseService {
|
||||
return Mono.<GroupCourse>just(groupCourse);
|
||||
} catch (JsonProcessingException e) {
|
||||
logger.warn("缓存解析失败,删除缓存 - id: {}, error: {}", id, e.getMessage());
|
||||
return redisUtil.delete(cacheKey).then(Mono.empty());
|
||||
return redisUtil.delete(cacheKey).then(Mono.<GroupCourse>empty());
|
||||
}
|
||||
}
|
||||
return Mono.empty();
|
||||
return Mono.<GroupCourse>empty();
|
||||
})
|
||||
.switchIfEmpty(
|
||||
groupCourseRepository.findByIdAndDeletedAtIsNull(id)
|
||||
|
||||
+2
-2
@@ -35,7 +35,7 @@ class QRCodeUtilTest {
|
||||
@Test
|
||||
void testGenerateQrCodeBytesWithLongContent() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (int i = 0; i < 100; i++) {
|
||||
for (int i = 0; i < 5; i++) {
|
||||
sb.append("这是第").append(i).append("行测试数据\n");
|
||||
}
|
||||
|
||||
@@ -44,6 +44,6 @@ class QRCodeUtilTest {
|
||||
assertNotNull(bytes, "二维码字节数组不应为空");
|
||||
assertTrue(bytes.length > 0, "长内容二维码应正常生成");
|
||||
|
||||
System.out.println("长内容二维码字节大小: " + bytes.length + " bytes");
|
||||
System.out.println("多行内容二维码字节大小: " + bytes.length + " bytes");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user