voteflux / digipol

An app to allow Australian Voters to vote on current issues and bills in the parliament.
https://digipol.app
GNU General Public License v3.0
60 stars 9 forks source link

Test services mock #149

Closed XertroV closed 3 years ago

XertroV commented 4 years ago

Problem: We don't have a very good way to test stuff atm - no mocks on services etc. This adds the basic framework for that.

Solution: Add mocks via mockito (using this as a base: https://www.filledstacks.com/post/how-to-mock-for-unit-testing/)

Note: this does mean some services like the API thing aren't doing much atm, so we probably need a good idea of what to mock and when.

Depends on #148

atomist[bot] commented 4 years ago

Build outputs for 882d8852e57ad6fcf7728bc3806a3931f880a9e4

:tada:

atomist[bot] commented 4 years ago

Build outputs for 0efc926ec1e6a81545d12b04624cc1e73dce90da

:tada:

atomist[bot] commented 4 years ago

Build outputs for 0efc926ec1e6a81545d12b04624cc1e73dce90da

:tada:

atomist[bot] commented 3 years ago

Build outputs for c192bbc393763039ef0c8413ffe808229db4cd27

:tada: