|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
nesstar.test.NesstarTestCase
nesstar.api.faster.DatafileTestBase
public class DatafileTestBase
A Base Test class for Datafile.java Automatically generated from ARGO/UML
| Field Summary | |
|---|---|
static DatafileHome |
__home
|
| Constructor Summary | |
|---|---|
DatafileTestBase(String testName)
Constructor for the DatafileTestBase object |
|
| Method Summary | |
|---|---|
static junit.framework.Test |
getAssociationTest()
|
static junit.framework.Test |
getAttributesTest()
|
static DatafileHome |
getHome()
|
static junit.framework.Test |
getMethodsTest()
|
static junit.framework.Test |
getProperiesTest()
|
static void |
main(String[] args)
The main program for the DatafileTestBase class |
static junit.framework.Test |
suite()
Return the suite of all tests of this class |
void |
testAssociationChildren()
A Test of the attribute children as collection of Datafile |
void |
testAssociationParents()
A Test of the attribute parents as collection of Datafile |
void |
testAssociationStudy()
A Test of the attribute study of type Study |
void |
testAssociationVariable()
A Test of the attribute variable as collection of Variable |
void |
testAttributeComment()
A Test of the attribute comment |
void |
testAttributeContent()
A Test of the attribute content |
void |
testAttributeCreationDate()
A test on CreationDate |
void |
testAttributeDdiDatafileID()
A Test of the attribute ddiDatafileID |
void |
testAttributeEncoding()
A Test of the attribute encoding |
void |
testAttributeFileType()
A Test of the attribute fileType |
void |
testAttributeHasData()
A Test of the attribute hasData |
void |
testAttributeLabel()
A Test of the attribute label |
void |
testAttributeName()
A Test of the attribute name |
void |
testAttributeNumCases()
A Test of the attribute numCases |
void |
testAttributeNumVars()
A Test of the attribute numVars |
void |
testAttributeRecType()
A Test of the attribute recType |
void |
testAttributeStructure()
A Test of the attribute structure |
void |
testHomeOperationFindAll()
A test on the home operation findAll(String id) |
void |
testHomeOperationFindByKey()
A test on the home operation findByKey(String id) |
void |
testOperationAddDataFile()
A Test of the operation AddDataFile(File file) |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, getName, run, run, runBare, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static DatafileHome __home
| Constructor Detail |
|---|
public DatafileTestBase(String testName)
testName - | Method Detail |
|---|
public static DatafileHome getHome()
throws Exception
Exception
public static junit.framework.Test getProperiesTest()
throws Exception
Exception
public static junit.framework.Test getAttributesTest()
throws Exception
Exception
public static junit.framework.Test getAssociationTest()
throws Exception
Exception
public static junit.framework.Test getMethodsTest()
throws Exception
Exceptionpublic static void main(String[] args)
args - The command line argumentspublic static junit.framework.Test suite()
public void testAttributeNumCases()
throws Exception
Number of cases or observations in the entire file. To be used for rectangular files only.
Exception
public void testAttributeNumVars()
throws Exception
Number of variables in the entire file.To be used for rectangular files only.
Exception
public void testAttributeName()
throws Exception
replicated in label - should be deprecated *
Exception
public void testAttributeFileType()
throws Exception
Types of data files include raw data (ASCII, EBCDIC, etc.) and software-dependent files such as SAS datasets, SPSS export files, etc.
Exception
public void testAttributeRecType()
throws Exception
Indicates the type of record, e.g., "A records" or "Household records".
Exception
public void testAttributeEncoding()
throws Exception
The charset attribute allows you to specify the character set used in the file, e.g., us-ascii, ebcdic, unicode UTF-8, etc.
Exception
public void testAttributeStructure()
throws Exception
Indicates hierarchical, rectangular, relational or nested (the default is rectangular).
Exception
public void testAttributeDdiDatafileID()
throws Exception
File ID (local to this data file)
Exception
public void testAttributeContent()
throws Exception
Exception
public void testAttributeLabel()
throws Exception
Contains a short title that will be used to distinguish a particular file/part from other files/parts in the data collection.
Exception
public void testAttributeComment()
throws Exception
Abstract or description of file. An unformatted summary describing the purpose, nature, and scope of the data file, special characteristics of its contents, major subject areas covered, and what questions the PIs attempted to answer when they created the file. A listing of major variables in the file is important here. In the case of multi-file collections, this uniquely describes the contents of each file.
Exception
public void testAttributeHasData()
throws Exception
Does this Datafile have data?
Exception
public void testAttributeCreationDate()
throws Exception
Exception
public void testHomeOperationFindByKey()
throws Exception
Exception
public void testHomeOperationFindAll()
throws Exception
Exception
public void testOperationAddDataFile()
throws Exception
add the data file corresponding to this object
Exception
public void testAssociationStudy()
throws Exception
Exception
public void testAssociationParents()
throws Exception
Exception
public void testAssociationChildren()
throws Exception
Exception
public void testAssociationVariable()
throws Exception
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||