powerup-android
powerup-android copied to clipboard
Compile errors in the code
As a tester, I should be able to compile the code without any errors
when replacing the db handler functions, although the DatabaseHandler class is removed from the project, it's usages are not removed.
Acceptance Criteria
- [ ] there shouldn't be any compile errors
Definition of Done
- [ ] All of the required items are completed.
- [ ] Approval by 1 mentor.
Estimation
0.5 hours
I have encountered/reproduced this error. I got the following error
powerup/systers/com/MapActivity.java | |
---|---|
error: package powerup.systers.com.db does not exist | |
error: cannot find symbol class DatabaseHandler | |
error: cannot find symbol class DatabaseHandler | |
error: cannot find symbol class DatabaseHandler |
Since roomDB is being used for database query so somebody might have deleted DatabaseHandler class as it was not needed.
Here I can rewrite the activity to make use of roomDB. Can I takeup this task?
I have checked that the code in master branch doesnot use this activity(powerip.syster.com.MapActivity) anywhere in the project hence we can delete it. Should i do this and make a PR?
@imashwani Error is in MapActivityTest class. You're right that DatabaseHandler is deleted without changing the unit tests. In PR, You will need re-write tests according to current MapActivity implementation. Can you do it?
I have rechecked and from what i understand, on the master branch the MapActivity (powerip.syster.com.MapActivity) is of no use anymore.
There is no associated layout file. The new map layout is gamemap.xml
powerip.syster.com.MapActivity hasn't been used anywhere in the code insted powerup.systers.com.ui.MapActivity is being used with gamemap.xml
I don't know how to write unit tests, can you please guide me on that. So, I will delete powerip.syster.com.MapActivity and write unit tests for powerup.systers.com.ui.MapActivity in my PR. Thanks for the reply.
@m-murad @Rimjhim28 Can I work on this issue? I'll rewrite the tests as per new code changes made during GSoC using Junit.