|
|||||||||
| 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.DatasetTestBase
nesstar.api.DatasetTest
public class DatasetTest
A Test class for Dataset.java Automatically generated from ARGO/UML
| Field Summary |
|---|
| Fields inherited from class nesstar.api.DatasetTestBase |
|---|
__home |
| Constructor Summary | |
|---|---|
DatasetTest(String testName)
Constructor for the DatasetTest object |
|
| Method Summary | |
|---|---|
static void |
checkDownloadResult(String testfile,
URL result)
Check that the result of the subset is correct |
void |
checkRemoveDataset(Study study,
String studyFile,
int partsLevel)
Check that a dataset/study is correctly removed |
static void |
checkStatOpResult(String testfile,
String result)
Check that the result of the tabulation is correct |
static void |
main(String[] args)
The main program for the DatasetTest class |
static junit.framework.Test |
suite()
Return the suite of all tests of this class |
void |
testAttributeAbstractText()
Attributes Tests * |
void |
testAttributeAccessConditions()
A unit test for JUnit |
void |
testAttributeAccessStatus()
A unit test for JUnit |
void |
testAttributeCollMode()
A unit test for JUnit |
void |
testAttributeComment()
A test on Comment |
void |
testAttributeCreationDate()
A test on CreationDate |
void |
testAttributeCubeHasData()
A unit test for hasData if cube |
void |
testAttributeDataKind()
A unit test for JUnit |
void |
testAttributeDistributionDate()
A unit test for JUnit |
void |
testAttributeDistributor()
A unit test for JUnit |
void |
testAttributeGeographicalCover()
A unit test for JUnit |
void |
testAttributeGeographicalUnit()
A unit test for JUnit |
void |
testAttributeHasData()
A unit test for JUnit |
void |
testAttributeLabel()
A test on Label |
void |
testAttributeSampling()
A unit test for JUnit |
void |
testAttributeSource()
A unit test for JUnit |
void |
testAttributeSubcat()
A unit test for JUnit |
void |
testAttributeTimeMeth()
A unit test for JUnit |
void |
testAttributeTimePeriod()
A unit test for JUnit |
void |
testAttributeTitle()
A unit test for JUnit |
void |
testOperationAddDataFile()
A Test of the operation AddDataFile() Upload one of the datafiles of this dataset. |
void |
testOperationBreakdown()
A Test of the operation Breakdown() Breakdown. |
void |
testOperationDatalist()
A Test of the operation Datalist() Calculate Datalist statistics. |
void |
testOperationDelete()
A Test of the operation Delete() |
void |
testOperationDescriptive()
A Test of the operation Descriptive() Calculate descriptive statistics. |
void |
testOperationFindDDIVariables()
A Test of the operation FindDDIVariables() Get a list of the IDs of the DDI variables that contain the specified keyword. |
void |
testOperationFrequency()
A Test of the operation Frequency() Frequencies. |
void |
testOperationGetDDI()
A Test of the operation GetDDI() Get the full DDI metadata for this dataset. |
void |
testOperationGetDDISkeleton()
A Test of the operation GetDDISkeleton() Get a possibly incomplete DDI document. |
void |
testOperationGetDDIVariable()
A Test of the operation GetDDIVariable() Get the full XML code of the variable. |
void |
testOperationGFrequency()
A Test of the operation GFrequency() Gfrequencies (?). |
void |
testOperationMultipleRegression()
A Test of the operation MultipleRegression() MultipleRegression. |
void |
testOperationSubset()
Test full download. |
void |
testOperationTabulation()
A Test of the operation Tabulation() A cross tabulation on this dataset. |
void |
testOperationTabulationUnsupportedFormat()
A Test of the operation Tabulation() in unsupported NESSTAR format A cross tabulation on this dataset. |
void |
testOperationXBreak()
A Test of the operation XBreak() A crossbreak on this dataset. |
void |
testSubsetException()
|
| Methods inherited from class nesstar.api.DatasetTestBase |
|---|
getAssociationTest, getAttributesTest, getHome, getMethodsTest, getProperiesTest, testHomeOperationFindAll, testHomeOperationFindByKey |
| 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 |
| Constructor Detail |
|---|
public DatasetTest(String testName)
throws Exception
testName -
Exception| Method Detail |
|---|
public static void main(String[] args)
args - The command line argumentspublic static junit.framework.Test suite()
public void testAttributeAbstractText()
throws Exception
testAttributeAbstractText in class DatasetTestBaseException
public void testAttributeAccessConditions()
throws Exception
testAttributeAccessConditions in class DatasetTestBaseException
public void testAttributeAccessStatus()
throws Exception
testAttributeAccessStatus in class DatasetTestBaseException
public void testAttributeCollMode()
throws Exception
testAttributeCollMode in class DatasetTestBaseException
public void testAttributeDataKind()
throws Exception
testAttributeDataKind in class DatasetTestBaseException
public void testAttributeDistributionDate()
throws Exception
testAttributeDistributionDate in class DatasetTestBaseException
public void testAttributeDistributor()
throws Exception
testAttributeDistributor in class DatasetTestBaseException
public void testAttributeGeographicalCover()
throws Exception
testAttributeGeographicalCover in class DatasetTestBaseException
public void testAttributeGeographicalUnit()
throws Exception
testAttributeGeographicalUnit in class DatasetTestBaseException
public void testAttributeHasData()
throws Exception
testAttributeHasData in class DatasetTestBaseException
public void testAttributeCubeHasData()
throws Exception
Exception
public void testAttributeSampling()
throws Exception
testAttributeSampling in class DatasetTestBaseException
public void testAttributeSource()
throws Exception
testAttributeSource in class DatasetTestBaseException
public void testAttributeSubcat()
throws Exception
testAttributeSubcat in class DatasetTestBaseException
public void testAttributeTimeMeth()
throws Exception
testAttributeTimeMeth in class DatasetTestBaseException
public void testAttributeTimePeriod()
throws Exception
testAttributeTimePeriod in class DatasetTestBaseException
public void testAttributeTitle()
throws Exception
testAttributeTitle in class DatasetTestBaseException
public void testAttributeLabel()
throws Exception
testAttributeLabel in class DatasetTestBaseException
public void testAttributeComment()
throws Exception
testAttributeComment in class DatasetTestBaseException
public void testOperationAddDataFile()
throws Exception
There can be one or more datafiles associated with each dataset.
Each datafile has an unique ID indicated in the ID attribute of the fileDscr/fileName element.
The datafile should be in NSDSTAT format and it's actually composed by three separate files with suffixes: dkm, ind and nsf.
testOperationAddDataFile in class DatasetTestBaseException
public void testOperationDelete()
throws Exception
testOperationDelete in class DatasetTestBaseException
public void checkRemoveDataset(Study study,
String studyFile,
int partsLevel)
throws Exception
study - studyFile - partsLevel -
Exception
public static void checkStatOpResult(String testfile,
String result)
throws Exception
testfile - the name of the testfile to save/compare the result to/with, e.g. "2568_tabulation1.txt"result - the result of the operation
Exception
public static void checkDownloadResult(String testfile,
URL result)
throws Exception
testfile - the name of the testfile to save/compare the result to/with, e.g. "2568_tabulation1.txt"result - the result of the operation
Exception
public void testOperationSubset()
throws Exception
testOperationSubset in class DatasetTestBaseException
public void testOperationDescriptive()
throws Exception
Returns the result of the operation in a proprietary NSDSTAT format. Note: the old NESSTAR format is no longer supported, we use XML only now, in 'mergeVariables' placeholder.
testOperationDescriptive in class DatasetTestBaseException
public void testOperationDatalist()
throws Exception
Returns the result of the operation in a proprietary NSDSTAT format. Note: the old NESSTAR format is no longer supported, we use XML only now, in 'mergeVariables' placeholder.
testOperationDatalist in class DatasetTestBaseException
public void testOperationFrequency()
throws Exception
Returns the result of the operation in a proprietary NSDSTAT format. Note: the old NESSTAR format is no longer supported, we use XML only now, in 'mergeVariables' placeholder.
testOperationFrequency in class DatasetTestBaseException
public void testOperationGFrequency()
throws Exception
Returns the result of the operation in a proprietary NSDSTAT format. Note: the old NESSTAR format is no longer supported, we use XML only now, in 'mergeVariables' placeholder.
testOperationGFrequency in class DatasetTestBaseException
public void testOperationBreakdown()
throws Exception
Returns the result of the operation in a proprietary NSDSTAT format. Note: the old NESSTAR format is no longer supported, we use XML only now, in 'mergeVariables' placeholder.
testOperationBreakdown in class DatasetTestBaseException
public void testOperationMultipleRegression()
throws Exception
Returns the result of the operation in a proprietary NSDSTAT format. Note: the old NESSTAR format is no longer supported, we use XML only now, in 'mergeVariables' placeholder.
testOperationMultipleRegression in class DatasetTestBaseException
public void testOperationTabulation()
throws Exception
Returns the result of the operation in a proprietary NSDSTAT format. Note: the old NESSTAR format is no longer supported, we use XML only now, in 'mergeVariables' placeholder.
testOperationTabulation in class DatasetTestBaseException
public void testOperationXBreak()
throws Exception
Returns the result of the operation in a proprietary NSDSTAT format. Note: the old NESSTAR format is no longer supported, we use XML only now, in 'mergeVariables' placeholder.
testOperationXBreak in class DatasetTestBaseException
public void testOperationTabulationUnsupportedFormat()
throws Exception
Returns the result of the operation in a proprietary NSDSTAT format. Note: the old NESSTAR format is no longer supported, we use XML only now, in 'mergeVariables' placeholder.
Exception
public void testOperationFindDDIVariables()
throws Exception
testOperationFindDDIVariables in class DatasetTestBaseException
public void testOperationGetDDIVariable()
throws Exception
testOperationGetDDIVariable in class DatasetTestBaseException
public void testOperationGetDDI()
throws Exception
testOperationGetDDI in class DatasetTestBaseException
public void testOperationGetDDISkeleton()
throws Exception
Some or all of the variable elements might have been reduced to their skeleton form.
testOperationGetDDISkeleton in class DatasetTestBaseException
public void testSubsetException()
throws Exception
Exception
public void testAttributeCreationDate()
throws Exception
testAttributeCreationDate in class DatasetTestBaseException
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||