Skip to content

Commit 1389967

Browse files
Avoid incorrect warning about the Destination package (#1977)
Incorrect warning about the Destination package #1915
1 parent b04990f commit 1389967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/process/EngineProcessMain.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ private fun processInitialWarnings(report: TestsGenerationReport, params: Genera
273273
}
274274

275275
private fun destinationWarningMessage(testPackageName: String?, classUnderTestPackageName: String): String? {
276-
return if (classUnderTestPackageName != testPackageName) {
276+
return if (!testPackageName.isNullOrEmpty() && classUnderTestPackageName != testPackageName) {
277277
"""
278278
Warning: Destination package $testPackageName does not match package of the class $classUnderTestPackageName.
279279
This may cause unnecessary usage of reflection for protected or package-private fields and methods access.

0 commit comments

Comments
 (0)