Magic Card Database
  1. Magic Card Database

MagicDBUpdater

Public
AuthorCommitMessageCommit dateIssues
Christopher FeblesChristopher Febles
b53a3094edeMinor logging update.
Christopher FeblesChristopher Febles
e0778ac2887Fixed infinite loop caused by cloning MagicGathererDataDownloader. Fixed language handling and logging.Added System Rules dependency for command line testing. Replaced System.console() with Scanner for easier testing. Updated some logging levels.
Christopher FeblesChristopher Febles
4ea632b1f81Updated configuration code to support Java Spring configuration.Minor thread safety updates. For some reason, the Observers need to implement Comparable. Not sure why. Changed default logging level to WARN.
Christopher FeblesChristopher Febles
07218d8927bMTG-23: Replaced Spring XML configuration with Java Configuration.MTG-23
Christopher FeblesChristopher Febles
ac4c63e9821Updated project to use new shared Test Support project.Unit test pass. Integration tests pass.
Christopher FeblesChristopher Febles
a836853416fMinor Sonar-recommended changes.clone() methods now sourcing object from super.clone(), rather than calling a constructor.
Christopher FeblesChristopher Febles
60a560fb933Updated constant.
Christopher FeblesChristopher Febles
c0e86ecf6a2Separated Spring configuration files so that DB configuration isn't always included in the base file.Updated tests so that unit tests don't spawn the embedded SQL database. This should result in much faster builds.
Christopher FeblesChristopher Febles
4654c8f4654Updated dependency versions.Unit tests pass.
Christopher FeblesChristopher Febles
b1567db72e7Updated code to expect int primitive types instead of java.lang.Integer.Unit tests failing.
Christopher FeblesChristopher Febles
3d1a4f4d7a6Made MagicCardRawData immutable.
Christopher FeblesChristopher Febles
e8913f2630fImproved split() handling (I think): String.split for regex and blank separators For the latter, a blank element is returned in the array: Manually remove. For single character splits, use Apache StringUtils.split() For multi character splits, use Apache StringUtils.splitByWholeSeparator()
Christopher FeblesChristopher Febles
24df712f3f9Update to use new MagicCard Builder pattern.
Christopher FeblesChristopher Febles
069b32b688eCorrected versioning.
Christopher FeblesChristopher Febles
3a22ad8137dIncreased snapshot version to 1.0.1-SNAPSHOT so that Nexus will auto-link the correct snapshot and release versions.
Christopher FeblesChristopher Febles
1d2e995657dUpdated SNAPSHOT version to 0.0.2-SNAPSHOT.Removed unnecessary RelativePath tag. The Parent POM must be either installed in the local Maven repository, or the local settings.xml must include a Nexus repository that contains it.
Christopher FeblesChristopher Febles
1ae93501003Moved Apache commons-io from Test scope to Compile scope.
Christopher FeblesChristopher Febles
67f96bbf0fbBugfix: When running builds simultaneously, embedded SQL database port numbers conflict.
Christopher FeblesChristopher Febles
f5f5ef5af36Find/replace on all tab characters in favor of four spaces.
Christopher FeblesChristopher Febles
a435ab98b7cRemoved unnecessary object creation.
Christopher FeblesChristopher Febles
2709a240472Moved Commons IO dependency to the Parent POM.
Christopher FeblesChristopher Febles
83d1602ffacChanged timer from nanoseconds to milliseconds.
Christopher FeblesChristopher Febles
623e58897ecAdded description to POM to override inherited description from Parent POM.Replaced tab characters in favor of spaces. Extracted code into private methods to better encapsulate functionality. Added local variables to avoid reassigning method parameter. Removed finally block in favor of Java 7 try-with-resources.
Christopher FeblesChristopher Febles
b3bed6b848eWorking on Sonar issues.Pulled out parsing code into separate private methods. Added code to avoid re-assigning method parameters. All unit tests pass.
Christopher FeblesChristopher Febles
dcae7bcfd4aFixed Javadoc comments.Removed parseInt exception block in favor of StringUtils.isNumeric().
Christopher FeblesChristopher Febles
1d5be46cfa8Replaced isInteger() method with Apache Commons isNumeric() call.Updated and extended Javadoc comments. Added package-level Javadoc comments.
Christopher FeblesChristopher Febles
ebff7498dd4Added package level Javadoc comments.Added and expanded Javadoc comments. Refactored code so package names make more sense and reflect current design. Removed vestigial code from previous design (Singleton) no longer needed in current design. Added Observer class to watch for Downloader completion. TODO: Update UpdateMagicDatabase to use new Observer class rather than watching currently running threads. TODO: Finish updating Javad...
Christopher FeblesChristopher Febles
05c0cba04ceAdded version number to Maven plugin to clear build warning.
Christopher FeblesChristopher Febles
da002e9caf2README.md edited online with Bitbucket
Christopher FeblesChristopher Febles
88a1c2c1390Converted all tests to no longer require external dependencies, where possible.Annotated all existing unit tests with UnitTest category. Annotated remaining integration tests with IntegrationTest category. PROTIP: Integration test is defined as any test that requires an external resource to run. That is, web site/service, database, etc. Fixed bug where cloning a Downloader with a null Observer caused a NullPointerException. Created setter methods in inner Thread class for...
Christopher FeblesChristopher Febles
03bfc17efe5MagicCardDatabaseUpdaterTest now running as independent tests. They're still technically integration tests, but no longer require an Internet connection to run.PROTIP: "-noverify" JVM argument must be present when running PowerMock unit tests. This is set in the POM, but must be added manually to IDE-run test configurations.
Christopher FeblesChristopher Febles
9dc00e8ca3aAdded PowerMock support for unit testing.Added unit test to test PowerMock configuration. PROTIP: "-noverify" JVM argument must be present when running PowerMock unit tests. This is set in the parent POM, but must be added manually to IDE-run test configurations. Minor change to MagicGathererDataDownloader and MagicGathererDataObserver to support unit testing. Added mocking so that testUpdateOfSingleCard() in MagicCardDatabaseUpdaterT...
Christopher FeblesChristopher Febles
e17554c29ebREADME.md edited online with Bitbucket
Christopher FeblesChristopher Febles
cac33a282bbREADME.md edited online with Bitbucket
Christopher FeblesChristopher Febles
a21caa0110fREADME.md edited online with Bitbucket
Christopher FeblesChristopher Febles
1d144322bf3Now handling Ids with multiple cards.Taking the first card on the page, ignoring the second. May have to solve this problem at a later date.
Christopher FeblesChristopher Febles
204fcc50809Fixed issue where multithreaded process caused several thousand cards to be skipped.
Christopher FeblesChristopher Febles
2b1d5751ff7Added more reporting data
Christopher FeblesChristopher Febles
ef5b0d7c1b6Added code to avoid unnecessary database queries when a user has chosen not to proceed with an update.Added a new test for cards with Variable Colorless mana.
Christopher FeblesChristopher Febles
a54ea4ac224Fixed issue where certain Ids weren't being processed.Made Rarity an non-required field. Minor logging update.
Christopher FeblesChristopher Febles
4ec8c79a981Renamed startup script to be generic and take parameters to operate all updater functions.Performance tweaks.
Christopher FeblesChristopher Febles
60b5386e630Added new status message after processing completes.Increased Java heap size. Increased number of concurrent threads.
Christopher FeblesChristopher Febles
edd9f9f8456Added startup script for full database update that includes java heap memory options.
Christopher FeblesChristopher Febles
7657e615a36Added support for Phyrexian mana.
Christopher FeblesChristopher Febles
c50620e7e4fFixed issue where HttpClient was left open.Fixed issue where error messages were logged for colorless mana. Fixed(?) issue where stack traces weren't printed for errors thrown within a thread.
Christopher FeblesChristopher Febles
42c64e235baAdded support for parsing Colorless/Colored hybrid cards with Colorless values up to 10.Converted unit tests from assertTrue to assertEquals for more helpful JUnit messages.
Christopher FeblesChristopher Febles
a6aa3c7a7e2Added some debug logging.Downloader will now wait and retry after remote server errors.
Christopher FeblesChristopher Febles
1b6fefe3a3fFixed Power/Toughness calculation when they contain powers of two or one half values (Unhinged).
Christopher FeblesChristopher Febles
8629d8554d2Added new Russian unit test.Added new multi-id command line option
Christopher FeblesChristopher Febles
62cadcd1ddfMoved Spring configuration into API project.