Abstract:
This paper presents a controller and a utility class, named JTest101, which facilitates tester developments for assessing Java programs. The test controller uses existing Java platform mechanisms such as using a security manager to protect system resources, limiting tested program's execution time by running the tested program in another thread, using annotation feature to specify testing behaviors. Moreover, prohibit use standard class java, read input and output from file, the system provides frequently used services such as input data preparations, readoutput, compare output for exact match and approximate match, testing random and fixed value of boolean methods, compare state of object, get and set field of object. JTest101's size is only 91KB which can be embedded into each exercise package so that students can practice programmings and instantaneously get assessment feedback.