kawigi.language
Class JavaTestGenerator

java.lang.Object
  extended by kawigi.language.JavaTestGenerator
All Implemented Interfaces:
TestGenerator

public class JavaTestGenerator
extends java.lang.Object
implements TestGenerator


Constructor Summary
JavaTestGenerator()
           
 
Method Summary
 java.lang.String getCode(ClassDecl cl)
          Returns Java testing code for the problem statement's example test cases.
protected  java.lang.String toJavaTest(Test test, EditorDataType[] types, java.lang.String start)
          Quick utility function to provide the code that should return the answer.
protected  java.lang.String translateObject(EditorDataType type, java.lang.String value)
          Quck utility function to convert a value to code that creates that value in Java.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaTestGenerator

public JavaTestGenerator()
Method Detail

getCode

public java.lang.String getCode(ClassDecl cl)
Returns Java testing code for the problem statement's example test cases.

Specified by:
getCode in interface TestGenerator

toJavaTest

protected java.lang.String toJavaTest(Test test,
                                      EditorDataType[] types,
                                      java.lang.String start)
Quick utility function to provide the code that should return the answer.


translateObject

protected java.lang.String translateObject(EditorDataType type,
                                           java.lang.String value)
Quck utility function to convert a value to code that creates that value in Java.