Skip to content

If utBotGenerationTimeoutInMillis value is out of allowed scope, Ille…#1455

Merged
Vassiliy-Kudryashov merged 3 commits into
mainfrom
Vassiliy-Kudryashov/1438-if-utbotgenerationtimeoutinmillis-value-is-out-of-allowed-scope-illegalargumentexception-is-thrown-down-to-idea
Dec 6, 2022
Merged

If utBotGenerationTimeoutInMillis value is out of allowed scope, Ille…#1455
Vassiliy-Kudryashov merged 3 commits into
mainfrom
Vassiliy-Kudryashov/1438-if-utbotgenerationtimeoutinmillis-value-is-out-of-allowed-scope-illegalargumentexception-is-thrown-down-to-idea

Conversation

@Vassiliy-Kudryashov

Copy link
Copy Markdown
Member

…galArgumentException is thrown down to IDEA #1438

Implement API for ranges for settings properties

Description

API for properties validation was implemented, several numeric ranges were specified for UtSettings

Fixes #1438

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual Scenario

See the issue:

  1. Specify utBotGenerationTimeoutInMillis=100 in settings.properties
  2. Start IDEA with the plugin and try to generate tests
    Expected behavior: min value (1000) should be used instead of throwing Exception

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • No new warnings

…galArgumentException is thrown down to IDEA #1438

Implement API for ranges for settings properties
Comment thread utbot-core/src/main/kotlin/org/utbot/common/AbstractSettings.kt Outdated
Vassiliy-Kudryashov and others added 2 commits December 6, 2022 12:06
…imeoutinmillis-value-is-out-of-allowed-scope-illegalargumentexception-is-thrown-down-to-idea
@Vassiliy-Kudryashov Vassiliy-Kudryashov enabled auto-merge (squash) December 6, 2022 09:07
@Vassiliy-Kudryashov Vassiliy-Kudryashov merged commit 46d4573 into main Dec 6, 2022
@Vassiliy-Kudryashov Vassiliy-Kudryashov deleted the Vassiliy-Kudryashov/1438-if-utbotgenerationtimeoutinmillis-value-is-out-of-allowed-scope-illegalargumentexception-is-thrown-down-to-idea branch December 6, 2022 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If utBotGenerationTimeoutInMillis value is out of allowed scope, IllegalArgumentException is thrown down to IDEA

2 participants