| package org.codehaus.jsonpex; |
| import org.stringtree.json.JSONReader; |
| * @author cowtowncoder@yahoo.com |
| public class StringTreeDriver extends BaseJsonDriver |
| public StringTreeDriver() { super(); } |
| public void initializeDriver() { |
| // No factories for StringTree |
| public void run(TestCase testCase) |
| // StringTree impl only accepts Strings: |
| String input = new String(mInputData, "UTF-8"); |
| Object ob = new JSONReader().read(input); |
| mHashCode = ob.hashCode(); // just to get some non-optimizable number |
| throw new RuntimeException(e); |