sumeetsinghani / bus-stop-alarm

Automatically exported from code.google.com/p/bus-stop-alarm
MIT License
0 stars 0 forks source link

BusDbAdapterTest failed, unknow reason #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run BusDbAdapterTest.java only (the version 186, 187 only adds new files)

What is the expected output? What do you see instead?
expected: all tests passed.
instead: all tests are failed due to db is not opened yet

Original issue reported on code.google.com by QUANGHUY...@gmail.com on 3 Mar 2010 at 4:21

GoogleCodeExporter commented 9 years ago
Here's the detail errors when running all tests in the package
Test run failed: Unable to start activity
ComponentInfo{com.busstopalarm/com.busstopalarm.ConfirmationPage}:
java.lang.NullPointerException

Original comment by QUANGHUY...@gmail.com on 4 Mar 2010 at 1:08

GoogleCodeExporter commented 9 years ago
fixed the BusDbAdapterTest.java
Issue: from now on, for every test about DB, need to open() the Db before using 
and
close() after finish.

Also, in order to make the tests of importing DB entries from text files more
dynamically, I changed the structure for those relevant tests to compare 
directly
between Db values and text file value.

Original comment by QUANGHUY...@gmail.com on 9 Mar 2010 at 11:21

GoogleCodeExporter commented 9 years ago

Original comment by QUANGHUY...@gmail.com on 9 Mar 2010 at 11:22

GoogleCodeExporter commented 9 years ago
Update issue:

What steps will reproduce the problem?
1. Run BusDbAdapterTest.java only (the version 186, 187 only adds new files)

What is the expected output? What do you see instead?
expected: all tests passed.
instead: all tests are failed due to the error: "Db is not open".

Original comment by QUANGHUY...@gmail.com on 11 Mar 2010 at 10:11