File tree Expand file tree Collapse file tree 2 files changed +12
-21
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/codegen Expand file tree Collapse file tree 2 files changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -375,16 +375,21 @@ object TestNg : TestFramework(displayName = "TestNG") {
375
375
}
376
376
377
377
object Junit4 : TestFramework(" JUnit4" ) {
378
- private val parametrizedTestsNotSupportedError: Nothing = error(" Parametrized tests are not supported for JUnit4" )
378
+ private val parametrizedTestsNotSupportedError: Nothing
379
+ get() = error(" Parametrized tests are not supported for JUnit4" )
379
380
380
381
override val mainPackage: String = JUNIT4_PACKAGE
381
382
override val testAnnotation = " @$mainPackage .Test"
382
383
override val testAnnotationFqn: String = " $mainPackage .Test"
383
384
384
- override val parameterizedTestAnnotation = parametrizedTestsNotSupportedError
385
- override val parameterizedTestAnnotationFqn = parametrizedTestsNotSupportedError
386
- override val methodSourceAnnotation = parametrizedTestsNotSupportedError
387
- override val methodSourceAnnotationFqn = parametrizedTestsNotSupportedError
385
+ override val parameterizedTestAnnotation
386
+ get() = parametrizedTestsNotSupportedError
387
+ override val parameterizedTestAnnotationFqn
388
+ get() = parametrizedTestsNotSupportedError
389
+ override val methodSourceAnnotation
390
+ get() = parametrizedTestsNotSupportedError
391
+ override val methodSourceAnnotationFqn
392
+ get() = parametrizedTestsNotSupportedError
388
393
389
394
override val testAnnotationId = BuiltinClassId (
390
395
name = " $JUNIT4_PACKAGE .Test" ,
Original file line number Diff line number Diff line change @@ -212,21 +212,6 @@ internal abstract class TestFrameworkManager(val context: CgContext)
212
212
* Add a short test's description depending on the test framework type:
213
213
*/
214
214
abstract fun addTestDescription (description : String )
215
- // {
216
- // if (description == null) return
217
- // val testAnnotation =
218
- // collectedMethodAnnotations.singleOrNull { it.classId == testFramework.testAnnotationId }
219
- //
220
- // val descriptionArgument = CgNamedAnnotationArgument("description", stringLiteral(description))
221
- // if (testAnnotation is CgMultipleArgsAnnotation) {
222
- // testAnnotation.arguments += descriptionArgument
223
- // } else {
224
- // collectedMethodAnnotations += CgMultipleArgsAnnotation(
225
- // testFramework.testAnnotationId,
226
- // mutableListOf(descriptionArgument)
227
- // )
228
- // }
229
- // }
230
215
231
216
abstract fun disableTestMethod (reason : String )
232
217
@@ -396,7 +381,8 @@ internal class TestNgManager(context: CgContext) : TestFrameworkManager(context)
396
381
}
397
382
398
383
internal class Junit4Manager (context : CgContext ) : TestFrameworkManager(context) {
399
- private val parametrizedTestsNotSupportedError: Nothing = error(" Parametrized tests are not supported for JUnit4" )
384
+ private val parametrizedTestsNotSupportedError: Nothing
385
+ get() = error(" Parametrized tests are not supported for JUnit4" )
400
386
401
387
override val dataProviderMethodsHolder
402
388
get() = parametrizedTestsNotSupportedError
You can’t perform that action at this time.
0 commit comments