public class CountTest extends SqlableTestCase
| Constructor and Description |
|---|
CountTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testCountEmptyResult()
Should return the same count as there are entries in the result set if the where-clause
matches zero entries.
|
void |
testCountGroupBy()
Should return the total number of rows, even if the rows are grouped.
|
void |
testCountOrderBy()
Should not change the result if order by is used.
|
void |
testCountOrderBySql()
Shouldn't include order by as it has no influence on the result of count and
should improve performance.
|
void |
testCountTable()
Should return the same count as there are entries in the result set/table.
|
void |
testCountTableSql()
Should be a simple count for the entire table.
|
void |
testCountWhereClause()
Should return the same count as there are entries in the result set if the where-clause
matches several entries.
|
void |
testCountWhereClauseSql()
Should be a count with the specified where-clause.
|
assertSqlEquals, assertSqlEqualsassertArrayEquals, setUp, tearDowncreateApplication, getApplication, getSystemContext, terminateApplication, testApplicationTestCaseSetUpProperlyassertActivityRequiresPermission, assertReadingContentUriRequiresPermission, assertWritingContentUriRequiresPermission, getContext, scrubClass, setContext, testAndroidTestCaseSetupProperlycountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, failNotEquals, failNotSame, failSame, formatpublic void testCountTableSql()
public void testCountWhereClauseSql()
public void testCountOrderBySql()
public void testCountTable()
public void testCountWhereClause()
public void testCountEmptyResult()
public void testCountOrderBy()
public void testCountGroupBy()
Copyright © 2014. All rights reserved.