1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

Added some class documentation

This commit is contained in:
stleary 2015-08-09 18:24:47 -05:00
parent 1081ae092b
commit ccbec8127c
4 changed files with 13 additions and 0 deletions

View file

@ -1,5 +1,8 @@
package org.json.junit;
/**
* An enum with no methods or data
*/
public enum MyEnum {
VAL1,
VAL2,

View file

@ -1,5 +1,8 @@
package org.json.junit;
/**
* An enum that contains getters and some internal fields
*/
public enum MyEnumField {
VAL1(1, "val 1"),
VAL2(2, "val 2"),

View file

@ -2,6 +2,9 @@ package org.json.junit;
import java.util.*;
/**
* A resource bundle class
*/
public class StringsResourceBundle extends ListResourceBundle {
public Object[][] getContents() {
return contents;

View file

@ -4,6 +4,10 @@ import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
/**
* Invoke this class main method if you want to run unit tests from the
* command line. If successful, will print "true" to stdout.
*/
public class TestRunner {
public static void main(String[] args) {
Result result = JUnitCore.runClasses(JunitTestSuite.class);