Minor: Remove obsolete JAVA_FILE_PARSING_ERROR constant, fix corresponding test

This commit is contained in:
Yan Zhulanow
2017-02-03 21:47:18 +03:00
parent 08b98f7133
commit de3cb4567f
2 changed files with 1 additions and 2 deletions
@@ -20,7 +20,6 @@ class KaptError : RuntimeException {
val kind: Kind
enum class Kind(val message: String) {
JAVA_FILE_PARSING_ERROR("Java file parsing error"),
ERROR_WHILE_ANALYSIS("Java file analysis error"),
EXCEPTION("Exception while annotation processing"),
ERROR_RAISED("Error while annotation processing"),
@@ -132,7 +132,7 @@ class JavaKaptContextTest {
try {
doAnnotationProcessing(File(TEST_DATA_DIR, "ParseError.java"), simpleProcessor(), TEST_DATA_DIR)
} catch (e: KaptError) {
assertEquals(KaptError.Kind.JAVA_FILE_PARSING_ERROR, e.kind)
assertEquals(KaptError.Kind.ERROR_RAISED, e.kind)
throw e
}
}