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:
parent
1081ae092b
commit
ccbec8127c
4 changed files with 13 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
package org.json.junit;
|
package org.json.junit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An enum with no methods or data
|
||||||
|
*/
|
||||||
public enum MyEnum {
|
public enum MyEnum {
|
||||||
VAL1,
|
VAL1,
|
||||||
VAL2,
|
VAL2,
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
package org.json.junit;
|
package org.json.junit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An enum that contains getters and some internal fields
|
||||||
|
*/
|
||||||
public enum MyEnumField {
|
public enum MyEnumField {
|
||||||
VAL1(1, "val 1"),
|
VAL1(1, "val 1"),
|
||||||
VAL2(2, "val 2"),
|
VAL2(2, "val 2"),
|
||||||
|
|
|
@ -2,6 +2,9 @@ package org.json.junit;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A resource bundle class
|
||||||
|
*/
|
||||||
public class StringsResourceBundle extends ListResourceBundle {
|
public class StringsResourceBundle extends ListResourceBundle {
|
||||||
public Object[][] getContents() {
|
public Object[][] getContents() {
|
||||||
return contents;
|
return contents;
|
||||||
|
|
|
@ -4,6 +4,10 @@ import org.junit.runner.JUnitCore;
|
||||||
import org.junit.runner.Result;
|
import org.junit.runner.Result;
|
||||||
import org.junit.runner.notification.Failure;
|
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 class TestRunner {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Result result = JUnitCore.runClasses(JunitTestSuite.class);
|
Result result = JUnitCore.runClasses(JunitTestSuite.class);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue