Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

error message might be wrong in the TestDb.java #144

Open
Ray-Luo opened this issue Feb 3, 2016 · 0 comments
Open

error message might be wrong in the TestDb.java #144

Ray-Luo opened this issue Feb 3, 2016 · 0 comments

Comments

@Ray-Luo
Copy link

Ray-Luo commented Feb 3, 2016

In the TestDb.java Line 70
` // verify that the tables have been created
do {
tableNameHashSet.remove(c.getString(0));
} while( c.moveToNext() );

    // if this fails, it means that your database doesn't contain both the location entry
    // and weather entry tables
    assertTrue("Error: Your database was created without both the location entry and weather entry tables",
            tableNameHashSet.isEmpty());`

I was wondering if there was only one table in the database, then the assertTrue would still fail. In that case the error message "both tables are not created" might not be informative, and this----"Error: Your database was created without the location entry table or the weather entry table or both" would be better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant