Minor: Remove obsolete JAVA_FILE_PARSING_ERROR constant, fix corresponding test
This commit is contained in:
@@ -20,7 +20,6 @@ class KaptError : RuntimeException {
|
|||||||
val kind: Kind
|
val kind: Kind
|
||||||
|
|
||||||
enum class Kind(val message: String) {
|
enum class Kind(val message: String) {
|
||||||
JAVA_FILE_PARSING_ERROR("Java file parsing error"),
|
|
||||||
ERROR_WHILE_ANALYSIS("Java file analysis error"),
|
ERROR_WHILE_ANALYSIS("Java file analysis error"),
|
||||||
EXCEPTION("Exception while annotation processing"),
|
EXCEPTION("Exception while annotation processing"),
|
||||||
ERROR_RAISED("Error while annotation processing"),
|
ERROR_RAISED("Error while annotation processing"),
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ class JavaKaptContextTest {
|
|||||||
try {
|
try {
|
||||||
doAnnotationProcessing(File(TEST_DATA_DIR, "ParseError.java"), simpleProcessor(), TEST_DATA_DIR)
|
doAnnotationProcessing(File(TEST_DATA_DIR, "ParseError.java"), simpleProcessor(), TEST_DATA_DIR)
|
||||||
} catch (e: KaptError) {
|
} catch (e: KaptError) {
|
||||||
assertEquals(KaptError.Kind.JAVA_FILE_PARSING_ERROR, e.kind)
|
assertEquals(KaptError.Kind.ERROR_RAISED, e.kind)
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user