首页 > 其他分享 >测试方法如果想调用私有函数

测试方法如果想调用私有函数

时间:2023-03-17 15:46:30浏览次数:33  
标签:getNeInfo 调用 vlanUsageUsedIndexList 私有 collectionService neCollectionCheck 测试方法

// 試験方法(neCollectionCheck)
boolean result = ReflectionTestUtils.invokeMethod(collectionService_, "neCollectionCheck", getNeInfo(),
vlanUsageUsedIndexList);

 

collectionService_:类名

neCollectionCheck:方法名

getNeInfo(),  vlanUsageUsedIndexList:方法的输入参数

标签:getNeInfo,调用,vlanUsageUsedIndexList,私有,collectionService,neCollectionCheck,测试方法
From: https://www.cnblogs.com/linxiaofeng/p/17227013.html

相关文章