Skip to content

Commit 6f92dd2

Browse files
yigittschuchortdev
authored andcommitted
Assert symbol count in test
1 parent 8b30a76 commit 6f92dd2

File tree

1 file changed

+1
-1
lines changed
  • ksp/src/test/kotlin/com/tschuchort/compiletesting

1 file changed

+1
-1
lines changed

ksp/src/test/kotlin/com/tschuchort/compiletesting/KspTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class KspTest {
7272
val processor = object : AbstractSymbolProcessor() {
7373
override fun process(resolver: Resolver) {
7474
val symbols = resolver.getSymbolsWithAnnotation("foo.bar.TestAnnotation")
75-
assertThat(symbols).isNotEmpty()
75+
assertThat(symbols.size).isEqualTo(1)
7676
val klass = symbols.first()
7777
check(klass is KSClassDeclaration)
7878
val qName = klass.qualifiedName ?: error("should've found qualified name")

0 commit comments

Comments
 (0)