projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve names of startup-related tests
[Sone.git]
/
src
/
test
/
kotlin
/
net
/
pterodactylus
/
sone
/
main
/
SonePluginTest.kt
diff --git
a/src/test/kotlin/net/pterodactylus/sone/main/SonePluginTest.kt
b/src/test/kotlin/net/pterodactylus/sone/main/SonePluginTest.kt
index
d1e2cec
..
a656702
100644
(file)
--- a/
src/test/kotlin/net/pterodactylus/sone/main/SonePluginTest.kt
+++ b/
src/test/kotlin/net/pterodactylus/sone/main/SonePluginTest.kt
@@
-147,7
+147,7
@@
class SonePluginTest {
}
@Test
}
@Test
- fun `config-not-read event is sent to event bus when
new config is true
`() {
+ fun `config-not-read event is sent to event bus when
config file is invalid
`() {
File("sone.properties").deleteAfter {
writeText("Invalid")
val configNotReadReceived = AtomicBoolean()
File("sone.properties").deleteAfter {
writeText("Invalid")
val configNotReadReceived = AtomicBoolean()
@@
-160,7
+160,7
@@
class SonePluginTest {
}
@Test
}
@Test
- fun `config-not-read event is not sent to event bus when
first start is true
`() {
+ fun `config-not-read event is not sent to event bus when
config file does not exist
`() {
File("sone.properties").delete()
val configNotReadReceived = AtomicBoolean()
runSonePluginWithRealInjector {
File("sone.properties").delete()
val configNotReadReceived = AtomicBoolean()
runSonePluginWithRealInjector {
@@
-171,7
+171,7
@@
class SonePluginTest {
}
@Test
}
@Test
- fun `config-not-read event is not sent to event bus when
new config is false
`() {
+ fun `config-not-read event is not sent to event bus when
config file is valid
`() {
File("sone.properties").deleteAfter {
writeText("# comment")
val configNotReadReceived = AtomicBoolean()
File("sone.properties").deleteAfter {
writeText("# comment")
val configNotReadReceived = AtomicBoolean()