From 9c275c69e18991bcee5d8f0cbbf1aed1abd77df3 Mon Sep 17 00:00:00 2001 From: jzhou Date: Thu, 3 Mar 2011 02:44:16 +0000 Subject: [PATCH] Add unit tests for Abstract class support, Enum type support, Field Initializer support, Interface support, Static inner class support, static field/block support, switch-case statement support, and try-catch support --- Robust/src/Tests/ArrayInitializerTest.java | 2 -- Robust/src/Tests/DoTests | 9 ++++++++- Robust/src/Tests/InitializerTest.java | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Robust/src/Tests/ArrayInitializerTest.java b/Robust/src/Tests/ArrayInitializerTest.java index c14db846..0318d723 100644 --- a/Robust/src/Tests/ArrayInitializerTest.java +++ b/Robust/src/Tests/ArrayInitializerTest.java @@ -2,8 +2,6 @@ public class ArrayInitializerTest { public String[] sa = {"hello ", "world ", "!"}; - public ArrayInitializerTest(){} - static public void main( String[] args ) { int[] a = { 1, 2, 3 }; diff --git a/Robust/src/Tests/DoTests b/Robust/src/Tests/DoTests index b80b4c72..37a4aff4 100755 --- a/Robust/src/Tests/DoTests +++ b/Robust/src/Tests/DoTests @@ -16,4 +16,11 @@ dotest WriteFile WriteFile.java dotest ReadFile ReadFile.java dotest FileLength FileLength.java dotest IntegerTest IntegerTest.java -#dotest InitializerTest InitializerTest.java +dotest AbstractTest AbstractTest.java +dotest EnumTest EnumTest.java +dotest InitializerTest InitializerTest.java +dotest InterfaceTest InterfaceTest.java +dotest StaticInnerClassTest StaticInnerClassTest.java +dotest StaticTest StaticTest.java +dotest SwitchCaseTest SwitchCaseTest.java +dotest TryCatchTest TryCatchTest.java diff --git a/Robust/src/Tests/InitializerTest.java b/Robust/src/Tests/InitializerTest.java index ba90f388..12e41c99 100644 --- a/Robust/src/Tests/InitializerTest.java +++ b/Robust/src/Tests/InitializerTest.java @@ -1,4 +1,4 @@ -public class Test{ +public class InitializerTest{ static public void main(String[] args){ int mainInt = 10; Foo f1=new Foo(); -- 2.34.1