Skip to content

Commit 3c8dc61

Browse files
Replace 'UTBot' name mentions with 'UnitTestBot' (#1729)
Notifications use 'UTBot' name instead of 'UnitTestBot' #1727
1 parent 157befd commit 3c8dc61

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/CodeGenerationController.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ object CodeGenerationController {
151151
val testFilePointer = SmartPointerManager.getInstance(model.project)
152152
.createSmartPsiElementPointer(testClass.containingFile)
153153
val cut = psi2KClass[srcClass] ?: error("Didn't find KClass instance for class ${srcClass.name}")
154-
runWriteCommandAction(model.project, "Generate tests with UtBot", null, {
154+
runWriteCommandAction(model.project, "Generate tests with UnitTestBot", null, {
155155
generateCodeAndReport(
156156
process,
157157
testSetsId,
@@ -349,7 +349,7 @@ object CodeGenerationController {
349349
(utUtilsFile as PsiClassOwner).classes.first()
350350
}
351351

352-
runWriteCommandAction(model.project, "UtBot util class reformatting", null, {
352+
runWriteCommandAction(model.project, "UnitTestBot util class reformatting", null, {
353353
reformat(model, SmartPointerManager.getInstance(model.project).createSmartPsiElementPointer(utUtilsFile), utUtilsClass)
354354
})
355355

@@ -730,7 +730,7 @@ object CodeGenerationController {
730730
// IntentionHelper(model.project, editor, filePointer).applyIntentions()
731731
run(EDT_LATER, indicator, "Tests reformatting") {
732732
try {
733-
runWriteCommandAction(filePointer.project, "UtBot tests reformatting", null, {
733+
runWriteCommandAction(filePointer.project, "UnitTestBot tests reformatting", null, {
734734
reformat(model, filePointer, testClassUpdated)
735735
})
736736
unblockDocument(testClassUpdated.project, editor.document)

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/UtTestsDialogProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ object UtTestsDialogProcessor {
346346
}
347347

348348
private fun errorMessage(className: String?, timeout: Long) = buildString {
349-
appendLine("UtBot failed to generate any test cases for class $className.")
349+
appendLine("UnitTestBot failed to generate any test cases for class $className.")
350350
appendLine()
351351
appendLine("Try to alter test generation configuration, e.g. enable mocking and static mocking.")
352352
appendLine("Alternatively, you could try to increase current timeout $timeout sec for generating tests in generation dialog.")

utbot-ui-commons/src/main/kotlin/org/utbot/intellij/plugin/ui/Notifications.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ object UnsupportedJdkNotifier : ErrorNotifier() {
8989
object InvalidClassNotifier : WarningNotifier() {
9090
override val displayId: String = "Invalid class"
9191
override fun content(project: Project?, module: Module?, info: String): String =
92-
"Generate tests with UtBot for the $info is not supported."
92+
"Generate tests with UnitTestBot for the $info is not supported."
9393
}
9494

9595
object MissingLibrariesNotifier : WarningNotifier() {
@@ -140,7 +140,7 @@ object SarifReportNotifier : EventLogNotifier() {
140140
object TestsReportNotifier : InformationUrlNotifier() {
141141
override val displayId: String = "Generated unit tests report"
142142

143-
override val titleText: String = "UTBot: unit tests generated successfully"
143+
override val titleText: String = "UnitTestBot: unit tests generated successfully"
144144

145145
public override val urlOpeningListener: TestReportUrlOpeningListener = TestReportUrlOpeningListener
146146
}
@@ -149,15 +149,15 @@ object TestsReportNotifier : InformationUrlNotifier() {
149149
object WarningTestsReportNotifier : WarningUrlNotifier() {
150150
override val displayId: String = "Generated unit tests report"
151151

152-
override val titleText: String = "UTBot: unit tests generated with warnings"
152+
override val titleText: String = "UnitTestBot: unit tests generated with warnings"
153153

154154
public override val urlOpeningListener: TestReportUrlOpeningListener = TestReportUrlOpeningListener
155155
}
156156

157157
object DetailsTestsReportNotifier : EventLogNotifier() {
158158
override val displayId: String = "Test report details"
159159

160-
override val titleText: String = "Test report details of the unit tests generation via UtBot"
160+
override val titleText: String = "Test report details of the unit tests generation via UnitTestBot"
161161

162162
public override val urlOpeningListener: TestReportUrlOpeningListener = TestReportUrlOpeningListener
163163
}
@@ -200,7 +200,7 @@ object GotItTooltipActivity : StartupActivity {
200200
val shortcut = ActionManager.getInstance()
201201
.getKeyboardShortcut("org.utbot.intellij.plugin.ui.actions.GenerateTestsAction")?:return@invokeLater
202202
val shortcutText = KeymapUtil.getShortcutText(shortcut)
203-
val message = GotItMessage.createMessage("UTBot is ready!",
203+
val message = GotItMessage.createMessage("UnitTestBot is ready!",
204204
"<div style=\"font-size:${JBFont.label().biggerOn(2.toFloat()).size}pt;\">" +
205205
"You can get test coverage for methods, Java classes,<br>and even for whole source roots<br> with <b>$shortcutText</b></div>")
206206
message.setCallback { PropertiesComponent.getInstance().setValue(KEY, true) }

0 commit comments

Comments
 (0)