Refactor codegen tests

- initialize environment only once in setUp()
- add comments on why some tests are disabled
- modify and rename some tests
- re-enable now working tests
- extract some tests into files with box()
- remove useless 'throws' declarations and commented code
This commit is contained in:
Alexander Udalov
2013-01-22 22:22:53 +04:00
committed by Alexander Udalov
parent 99827d10a8
commit 0df71bd696
76 changed files with 601 additions and 704 deletions
@@ -65,11 +65,11 @@ public class EnumGenTest extends CodegenTestCase {
assertEquals(0xFF0000, rgbMethod.invoke(redValue));
}
public void testSimple() throws NoSuchFieldException, IllegalAccessException {
public void testSimple() {
blackBoxFile("enum/simple.kt");
}
public void testSimpleEnumInPackage() throws NoSuchFieldException, IllegalAccessException {
public void testSimpleEnumInPackage() {
blackBoxFile("enum/inPackage.kt");
}
@@ -89,16 +89,15 @@ public class EnumGenTest extends CodegenTestCase {
blackBoxFile("enum/ordinal.kt");
}
public void testValues() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
public void testValues() {
blackBoxFile("enum/valueof.kt");
}
public void testInClassObj() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
public void testInClassObj() {
blackBoxFile("enum/inclassobj.kt");
}
public void testAbstractMethod()
throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
public void testAbstractMethod() {
blackBoxFile("enum/abstractmethod.kt");
}