✨ Add “show metrics” debug information flag
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / main / SoneModuleTest.kt
index 526c089..d125769 100644 (file)
@@ -108,6 +108,12 @@ class SoneModuleTest {
        }
 
        @Test
+       fun `show metrics debug information flag is read from config`() {
+               File(currentDir, "sone.properties").writeText("Debug/ShowMetrics=true")
+               assertThat(injector.getInstance<Core>().debugInformation.showMetrics, equalTo(true))
+       }
+
+       @Test
        fun `event bus is bound`() {
                assertThat(injector.getInstance<EventBus>(), notNullValue())
        }