Skip to content

Incorrect types in execution lead to compilation errors #163

Open
@EgorkaKulikov

Description

@EgorkaKulikov

Run ContestEstimator with the following options:

timeLimit = 30
methodFilter = "com.google.common.base.CaseFormat.*"
projectFilter = listOf("guava-26.0")

There are the following compilation errors:

Compilation errors: C:\UtBotJava\UTBotJava\utbot-junit-contest\build\output\test_candidates\guava-26.0\com\google\common\base\CaseFormatTest.java:418: error: incompatible types: Object cannot be converted to CaseFormat
        CaseFormat sourceFormatMock = mock(anonymousCaseFormatClazz);

or

 Compilation errors: C:\UtBotJava\UTBotJava\utbot-junit-contest\build\output\test_candidates\guava-26.0\com\google\common\base\CaseFormatTest.java:63: error: incompatible types: String cannot be converted to Throwable
        (when((((Throwable) stringMock)).getCause())).thenReturn(((Throwable) null));

Run ContestEstimator with the following options:

timeLimit = 30
methodFilter = "com.google.common.collect.Queues.*"
projectFilter = listOf("guava-26.0")

There are the following compilation errors: #144

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions