Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cryptically branch operations (#360)
* Add validationOperation for all operation classes. Some minor changes in other classes * protected to public * Add mockito * Set scope to test * Remove extra newline * Moved result checking responsiblity to caller class * Add BPMOperationResult and OperationError enum * Forgot to set operationError * EvolveOperation Test * Remove pointless mocking * Use getter for name * Remove comment * Operation config private to protected * Operation config private to protected * Extract method, doOperation * Prep for operation handling * Setter for pokemon, for transfer after evolving * evolve operation implemntation * Fix test due to call method which causes null exception. Change mock calls to prevent method from actually running. * Print out success messages after operation * Extract initializtion of class varaibles. Called at setPokemon to update data * Transfer operation * Change all mock to not call method to prevent any side effects or error that might occur * More meaningful message * Transfer operation test * Clear spacing * tab to space in pom.xml * tab to space again.. * method name were starting with caps * Reordering of imports * Renaming of BPM to Bpm * Renaming of BPM to Bpm * OperationID to OpeartionId * Renaming ID to Id * Method name were caps * Update OperationTest method * Refactoring * Whole bunch of finals in AccountManager * Refactoring * Javadocs and minor refactoring * Javadoc fix * Adding of finals to BpmOperationResult * Javadocs again * Javadoc for BpmOperationResult * Fix - Javadoc for BpmOperationResult * Renaming - Javadoc for BpmOperationResult * Javadoc for BpmResult * Missing period - Javadoc for BpmOperationResult * Missing periods - Javadoc for BpmResult * Add finals. Sorting of imports * Javadoc for PlayerAccount * Final and import sorting for OperationConfirmationController * Add mocking constructor for all Operations * Javadoc for OperationTest * Periods.. periods... * Javadoc OperationTest * More.... Javadoc OperationTest * More....... Javadoc OperationTest * Operation: OperationID to OperationId * Remove old Operation file * PokemonModel: method and varaible names from IV to iv or Iv * period - Javadoc for PlayerAccount * PTC to Ptc * PTC to Ptc * Javadoc for Operations * Missing period again.. - Javadoc for Operations * Add super() call in OperationConfirmationController * Javadoc for LoginDataTest * Extract fail message to constant. Fix magic number * Refactoring of PokemonModel * Refactoring of PokemonModel * Fix EvoveOpeartionTest * Missing break statement in deleteLoginData(LoginType). Adding of finals, refactoring * Adding of finals, sorting of imports, refactoring of PokemonTab * Adding of finals, sorting of imports, refactoring of PokemonTable, PokemonTableModel * Missing file * Some more fixes * Try fixes * Try fixes * Fix case-sensitive file names
- Loading branch information
Showing
32 changed files
with
1,669 additions
and
947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/me/corriekay/pokegoutil/DATA/enums/OperationError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package me.corriekay.pokegoutil.DATA.enums; | ||
|
||
/** | ||
* Describes the different errors returned in the operations classes. | ||
* | ||
*/ | ||
public enum OperationError { | ||
IN_GYM, | ||
NOT_EVOLVABLE, | ||
INSUFFICENT_CANDIES, | ||
INSUFFICENT_STARDUSTS, | ||
IS_FAVORITE, | ||
|
||
EVOLVE_FAIL, | ||
TRANSFER_FAIL, | ||
|
||
NOT_IMPLEMENTED | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.