Skip to content

Commit a08a5e8

Browse files
CalMWolfslineargraph
authored andcommitted
add second test category to modern
1 parent eff972f commit a08a5e8

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package io.github.notenoughupdates.moulconfig.test
2+
3+
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean
4+
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption
5+
6+
class InnerCategory {
7+
8+
@ConfigEditorBoolean
9+
@ConfigOption(name = "Test Option", desc = "Test toggle")
10+
var shouldTestToggle: Boolean = false
11+
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package io.github.notenoughupdates.moulconfig.test
2+
3+
import io.github.notenoughupdates.moulconfig.annotations.Category
4+
5+
class TestCategoryB {
6+
7+
@Category(name = "Test Inner Category", desc = "")
8+
var innerCategory: InnerCategory = InnerCategory()
9+
10+
}

modern/templates/java/io/github/notenoughupdates/moulconfig/test/TestConfig.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ class TestConfig : Config() {
1212
override fun isValidRunnable(runnableId: Int): Boolean {
1313
return false
1414
}
15+
1516
@Category(name = "Cat a", desc = "Cat a desc")
1617
var testCategoryA: TestCategoryA = TestCategoryA()
18+
19+
@Category(name = "Cat b", desc = "Cat b desc")
20+
var testCategoryB: TestCategoryB = TestCategoryB()
1721
}

0 commit comments

Comments
 (0)