test/org/ohmage/test/clazz/ClassApiTest.java
public void test(final String adminAuthToken) throws ApiException {
		try {
			classId = "urn:class:testing:id";
			className = "Test Name";
			classDescription = null;
			
			api.createClass(adminAuthToken, Controller.CLIENT, classId, 
					className, classDescription);
			
			testClassReadAndUpdate(adminAuthToken);
		}
		finally {
			api.deleteClass(adminAuthToken, Controller.CLIENT, classId);
		}
	}
/**
	 * Tests all parameters that pertain to classes.
	 * 
	 * @param adminAuthToken An authentication token for an administrator.
	 * 
	 * @throws ApiException Thrown if there is a library error which should
	 * 						never happen.
	 */
Tests all parameters that pertain to classes.

@param adminAuthToken An authentication token for an administrator.

@throws ApiException Thrown if there is a library error which should
never happen.
Tests all parameters that pertain to classes . @param adminAuthToken An authentication token for an administrator . @throws ApiException Thrown if there is a library error which should never happen .
public void test(final String adminAuthToken) throws ApiException {
		try {
			classId = "urn:class:testing:id";
			className = "Test Name";
			classDescription = null;
			api.createClass(adminAuthToken, Controller.CLIENT, classId, 
					className, classDescription);
			testClassReadAndUpdate(adminAuthToken);
		}
		finally {
			api.deleteClass(adminAuthToken, Controller.CLIENT, classId);
		}
	}
public void test ( final String adminAuthToken ) throws ApiException { try { classId = "urn:class:testing:id" ; className = "Test Name" ; classDescription = null ; api . createClass ( adminAuthToken , Controller . CLIENT , classId , className , classDescription ) ; testClassReadAndUpdate ( adminAuthToken ) ; } finally { api . deleteClass ( adminAuthToken , Controller . CLIENT , classId ) ; } }
Tests all parameters that pertain to classes.
Tests all parameters that pertain to classes .