Sone.git
9 years agoStart moving parsing a Sone from a configuration to a specialized parser.
David ‘Bombe’ Roden [Sun, 7 Sep 2014 17:16:27 +0000 (19:16 +0200)]
Start moving parsing a Sone from a configuration to a specialized parser.

9 years agoMove parsing the profile to its own method.
David ‘Bombe’ Roden [Sun, 7 Sep 2014 13:12:13 +0000 (15:12 +0200)]
Move parsing the profile to its own method.

9 years agoRemove unused methods in core.
David ‘Bombe’ Roden [Sun, 7 Sep 2014 12:48:57 +0000 (14:48 +0200)]
Remove unused methods in core.

9 years agoRename method that creates albums if they don’t exist.
David ‘Bombe’ Roden [Sun, 7 Sep 2014 12:38:21 +0000 (14:38 +0200)]
Rename method that creates albums if they don’t exist.

9 years agoMove dependency injection configuration closer to where it’s useful.
David ‘Bombe’ Roden [Fri, 29 Aug 2014 16:26:20 +0000 (18:26 +0200)]
Move dependency injection configuration closer to where it’s useful.

9 years agoReturn own identities even if they don’t have the correct context.
David ‘Bombe’ Roden [Mon, 25 Aug 2014 18:56:27 +0000 (20:56 +0200)]
Return own identities even if they don’t have the correct context.

9 years agoAdd Sone-specific options object.
David ‘Bombe’ Roden [Mon, 25 Aug 2014 18:55:31 +0000 (20:55 +0200)]
Add Sone-specific options object.

9 years agoExtract identity manager interface.
David ‘Bombe’ Roden [Sun, 10 Aug 2014 10:35:35 +0000 (12:35 +0200)]
Extract identity manager interface.

9 years agoExtract interface for Sone downloader.
David ‘Bombe’ Roden [Sun, 10 Aug 2014 10:30:00 +0000 (12:30 +0200)]
Extract interface for Sone downloader.

9 years agoWhitespace.
David ‘Bombe’ Roden [Sat, 9 Aug 2014 12:23:23 +0000 (14:23 +0200)]
Whitespace.

9 years agoRemove test that can not guarantee its success.
David ‘Bombe’ Roden [Sat, 9 Aug 2014 12:23:18 +0000 (14:23 +0200)]
Remove test that can not guarantee its success.

9 years agoExtract interface from the web of trust updater.
David ‘Bombe’ Roden [Sat, 9 Aug 2014 09:52:46 +0000 (11:52 +0200)]
Extract interface from the web of trust updater.

This allows way easier testing in CoreTest.

9 years agoFix own identities without trust identities from disappearing.
David ‘Bombe’ Roden [Thu, 7 Aug 2014 19:27:09 +0000 (21:27 +0200)]
Fix own identities without trust identities from disappearing.

9 years agoAdd test for Sone downloader.
David ‘Bombe’ Roden [Thu, 7 Aug 2014 17:22:03 +0000 (19:22 +0200)]
Add test for Sone downloader.

9 years agoRestrict access to methods.
David ‘Bombe’ Roden [Wed, 6 Aug 2014 15:13:02 +0000 (17:13 +0200)]
Restrict access to methods.

9 years agoAdd equals() implementation.
David ‘Bombe’ Roden [Tue, 5 Aug 2014 16:46:15 +0000 (18:46 +0200)]
Add equals() implementation.

9 years agoDescription can never be null.
David ‘Bombe’ Roden [Tue, 5 Aug 2014 15:59:34 +0000 (17:59 +0200)]
Description can never be null.

9 years agoCheck the argument, not the state.
David ‘Bombe’ Roden [Tue, 5 Aug 2014 00:22:22 +0000 (02:22 +0200)]
Check the argument, not the state.

9 years agoTrim field name before using it.
David ‘Bombe’ Roden [Tue, 5 Aug 2014 00:22:04 +0000 (02:22 +0200)]
Trim field name before using it.

9 years agoRemove unused method.
David ‘Bombe’ Roden [Mon, 4 Aug 2014 22:25:53 +0000 (00:25 +0200)]
Remove unused method.

9 years agoAdd unit test for preferences.
David ‘Bombe’ Roden [Mon, 4 Aug 2014 16:32:34 +0000 (18:32 +0200)]
Add unit test for preferences.

9 years agoAdd tests for web of trust updater.
David ‘Bombe’ Roden [Mon, 4 Aug 2014 09:37:47 +0000 (11:37 +0200)]
Add tests for web of trust updater.

9 years agoRemove unnecessary method.
David ‘Bombe’ Roden [Mon, 4 Aug 2014 09:10:54 +0000 (11:10 +0200)]
Remove unnecessary method.

9 years agoRemove unused method.
David ‘Bombe’ Roden [Sun, 3 Aug 2014 18:58:00 +0000 (20:58 +0200)]
Remove unused method.

9 years agoNo need to check for the stop job.
David ‘Bombe’ Roden [Sun, 3 Aug 2014 18:55:33 +0000 (20:55 +0200)]
No need to check for the stop job.

The stop job can not be in the queue without stop() having been called.

9 years agoAdd unit test for “set trust” job.
David ‘Bombe’ Roden [Sun, 3 Aug 2014 17:42:55 +0000 (19:42 +0200)]
Add unit test for “set trust” job.

9 years agoUpdate identities only after the WOT has been modified.
David ‘Bombe’ Roden [Sun, 3 Aug 2014 17:42:20 +0000 (19:42 +0200)]
Update identities only after the WOT has been modified.

9 years agoRequire that truster and trustee are always non-null.
David ‘Bombe’ Roden [Sun, 3 Aug 2014 17:25:15 +0000 (19:25 +0200)]
Require that truster and trustee are always non-null.

9 years agoActually remove trust when setting it null.
David ‘Bombe’ Roden [Sun, 3 Aug 2014 17:22:04 +0000 (19:22 +0200)]
Actually remove trust when setting it null.

9 years agoRemove unnecessary casts.
David ‘Bombe’ Roden [Sun, 3 Aug 2014 17:09:58 +0000 (19:09 +0200)]
Remove unnecessary casts.

9 years agoAdd unit test for sone rescuer.
David ‘Bombe’ Roden [Sun, 3 Aug 2014 16:31:35 +0000 (18:31 +0200)]
Add unit test for sone rescuer.

9 years agoSuppress some warnings.
David ‘Bombe’ Roden [Sun, 3 Aug 2014 08:43:17 +0000 (10:43 +0200)]
Suppress some warnings.

9 years agoMake delay configurable in test constructor to allow faster testing.
David ‘Bombe’ Roden [Sat, 2 Aug 2014 14:54:04 +0000 (16:54 +0200)]
Make delay configurable in test constructor to allow faster testing.

9 years agoAdd more tests of sone inserter.
David ‘Bombe’ Roden [Sat, 2 Aug 2014 11:09:04 +0000 (13:09 +0200)]
Add more tests of sone inserter.

9 years ago“sone” can never be null, the constructor would balk.
David ‘Bombe’ Roden [Sat, 2 Aug 2014 09:49:50 +0000 (11:49 +0200)]
“sone” can never be null, the constructor would balk.

9 years agoAdd test for “set property” job.
David ‘Bombe’ Roden [Sat, 2 Aug 2014 09:40:45 +0000 (11:40 +0200)]
Add test for “set property” job.

9 years agoAdd test for insert token.
David ‘Bombe’ Roden [Sat, 2 Aug 2014 09:40:22 +0000 (11:40 +0200)]
Add test for insert token.

9 years agoIncrease test coverage.
David ‘Bombe’ Roden [Fri, 1 Aug 2014 17:12:54 +0000 (19:12 +0200)]
Increase test coverage.

9 years agoIncrease test coverage.
David ‘Bombe’ Roden [Fri, 1 Aug 2014 00:44:40 +0000 (02:44 +0200)]
Increase test coverage.

9 years agoAdd unit test for the insert token supplier.
David ‘Bombe’ Roden [Fri, 1 Aug 2014 00:22:30 +0000 (02:22 +0200)]
Add unit test for the insert token supplier.

9 years agoAdd unit test for image inserter.
David ‘Bombe’ Roden [Fri, 1 Aug 2014 00:20:17 +0000 (02:20 +0200)]
Add unit test for image inserter.

9 years agoUse a supplier to generate insert tokens for images.
David ‘Bombe’ Roden [Fri, 1 Aug 2014 00:19:06 +0000 (02:19 +0200)]
Use a supplier to generate insert tokens for images.

9 years agoMove reflection-based methods to their own class.
David ‘Bombe’ Roden [Fri, 1 Aug 2014 00:17:13 +0000 (02:17 +0200)]
Move reflection-based methods to their own class.

9 years agoAdd class that fetches a Sone.
David ‘Bombe’ Roden [Thu, 31 Jul 2014 19:20:04 +0000 (21:20 +0200)]
Add class that fetches a Sone.

9 years agoRename class that fetches a Sone with its URI.
David ‘Bombe’ Roden [Thu, 31 Jul 2014 19:14:37 +0000 (21:14 +0200)]
Rename class that fetches a Sone with its URI.

9 years agoAdd test for Sone URI.
David ‘Bombe’ Roden [Thu, 31 Jul 2014 19:14:01 +0000 (21:14 +0200)]
Add test for Sone URI.

9 years agoIncrease test coverage.
David ‘Bombe’ Roden [Thu, 31 Jul 2014 13:01:38 +0000 (15:01 +0200)]
Increase test coverage.

9 years agoIncrese test coverage.
David ‘Bombe’ Roden [Thu, 31 Jul 2014 12:33:18 +0000 (14:33 +0200)]
Increse test coverage.

9 years agoRemove check that is never triggered.
David ‘Bombe’ Roden [Thu, 31 Jul 2014 12:33:05 +0000 (14:33 +0200)]
Remove check that is never triggered.

9 years agoIncrease test coverage.
David ‘Bombe’ Roden [Wed, 30 Jul 2014 14:04:37 +0000 (16:04 +0200)]
Increase test coverage.

9 years agoIncrease test coverage.
David ‘Bombe’ Roden [Wed, 30 Jul 2014 12:59:34 +0000 (14:59 +0200)]
Increase test coverage.

9 years agoAdd test for “remove context” job.
David ‘Bombe’ Roden [Wed, 30 Jul 2014 12:46:30 +0000 (14:46 +0200)]
Add test for “remove context” job.

9 years agoAdd test for “add context” job.
David ‘Bombe’ Roden [Wed, 30 Jul 2014 12:20:53 +0000 (14:20 +0200)]
Add test for “add context” job.

9 years agoAdd class that marks a reply as known.
David ‘Bombe’ Roden [Wed, 30 Jul 2014 12:20:18 +0000 (14:20 +0200)]
Add class that marks a reply as known.

9 years agoAdd class that marks a post as known.
David ‘Bombe’ Roden [Wed, 30 Jul 2014 12:04:57 +0000 (14:04 +0200)]
Add class that marks a post as known.

9 years agoAdd class to fetch a Sone.
David ‘Bombe’ Roden [Wed, 30 Jul 2014 11:59:46 +0000 (13:59 +0200)]
Add class to fetch a Sone.

9 years agoAdd class to set FCP interface access level from an option.
David ‘Bombe’ Roden [Tue, 29 Jul 2014 17:58:16 +0000 (19:58 +0200)]
Add class to set FCP interface access level from an option.

9 years agoAdd class that activates the FCP interface from an option.
David ‘Bombe’ Roden [Tue, 29 Jul 2014 17:53:00 +0000 (19:53 +0200)]
Add class that activates the FCP interface from an option.

9 years agoAdd class for setting insertion delay from an option.
David ‘Bombe’ Roden [Tue, 29 Jul 2014 17:47:03 +0000 (19:47 +0200)]
Add class for setting insertion delay from an option.

9 years agoUse the appropriate Sone predicates.
David ‘Bombe’ Roden [Tue, 29 Jul 2014 15:45:36 +0000 (17:45 +0200)]
Use the appropriate Sone predicates.

9 years agoRemove unused exception constructors.
David ‘Bombe’ Roden [Tue, 29 Jul 2014 15:41:22 +0000 (17:41 +0200)]
Remove unused exception constructors.

9 years agoAdd test for the second USK callback.
David ‘Bombe’ Roden [Tue, 29 Jul 2014 15:41:09 +0000 (17:41 +0200)]
Add test for the second USK callback.

9 years agoAdd tests for the callback.
David ‘Bombe’ Roden [Tue, 29 Jul 2014 15:29:53 +0000 (17:29 +0200)]
Add tests for the callback.

9 years agoAdd unit test for freenet interface.
David ‘Bombe’ Roden [Tue, 22 Jul 2014 21:55:49 +0000 (23:55 +0200)]
Add unit test for freenet interface.

9 years agoCast client to a different interface.
David ‘Bombe’ Roden [Tue, 22 Jul 2014 21:55:12 +0000 (23:55 +0200)]
Cast client to a different interface.

9 years agoRemove unused method.
David ‘Bombe’ Roden [Tue, 22 Jul 2014 14:07:09 +0000 (16:07 +0200)]
Remove unused method.

9 years agoAdd tests for identity events.
David ‘Bombe’ Roden [Tue, 22 Jul 2014 12:00:30 +0000 (14:00 +0200)]
Add tests for identity events.

9 years agoAdd unit test for update checker.
David ‘Bombe’ Roden [Mon, 21 Jul 2014 17:28:35 +0000 (19:28 +0200)]
Add unit test for update checker.

9 years agoConfigure JaCoCo coverage plugin.
David ‘Bombe’ Roden [Wed, 16 Jul 2014 19:46:16 +0000 (21:46 +0200)]
Configure JaCoCo coverage plugin.

9 years agoAdd unit test for options.
David ‘Bombe’ Roden [Mon, 7 Jul 2014 19:11:46 +0000 (21:11 +0200)]
Add unit test for options.

9 years agoAdd unit test for default option implementation.
David ‘Bombe’ Roden [Mon, 7 Jul 2014 18:36:00 +0000 (20:36 +0200)]
Add unit test for default option implementation.

9 years agoRemove unused method.
David ‘Bombe’ Roden [Mon, 7 Jul 2014 18:31:12 +0000 (20:31 +0200)]
Remove unused method.

9 years agoSet time of Sone when creating insert information.
David ‘Bombe’ Roden [Mon, 7 Jul 2014 18:08:05 +0000 (20:08 +0200)]
Set time of Sone when creating insert information.

9 years agoAdd unit test for default identities.
David ‘Bombe’ Roden [Sat, 5 Jul 2014 08:00:18 +0000 (10:00 +0200)]
Add unit test for default identities.

9 years agoCopy identity classes from refactoring branch.
David ‘Bombe’ Roden [Fri, 27 Jun 2014 19:16:29 +0000 (21:16 +0200)]
Copy identity classes from refactoring branch.

9 years agoInject identity loader instead of context into identity manager.
David ‘Bombe’ Roden [Fri, 27 Jun 2014 16:32:44 +0000 (18:32 +0200)]
Inject identity loader instead of context into identity manager.

9 years agoMake identity loader injectable.
David ‘Bombe’ Roden [Fri, 27 Jun 2014 16:32:17 +0000 (18:32 +0200)]
Make identity loader injectable.

9 years agoUse context objects and optionals in interfaces.
David ‘Bombe’ Roden [Fri, 27 Jun 2014 16:32:08 +0000 (18:32 +0200)]
Use context objects and optionals in interfaces.

9 years agoAdd function to extract the context of a context object.
David ‘Bombe’ Roden [Fri, 27 Jun 2014 16:30:58 +0000 (18:30 +0200)]
Add function to extract the context of a context object.

9 years agoAdd custom context type for dependency injection.
David ‘Bombe’ Roden [Fri, 27 Jun 2014 16:00:33 +0000 (18:00 +0200)]
Add custom context type for dependency injection.

9 years agoAdd identity manager changes from the refactoring branch.
David ‘Bombe’ Roden [Fri, 27 Jun 2014 15:56:33 +0000 (17:56 +0200)]
Add identity manager changes from the refactoring branch.

9 years agoImplement hashCode() and equals().
David ‘Bombe’ Roden [Thu, 14 Nov 2013 21:40:54 +0000 (22:40 +0100)]
Implement hashCode() and equals().

9 years agoSynchronize all access on the current own identities.
David ‘Bombe’ Roden [Thu, 26 Jun 2014 18:21:14 +0000 (20:21 +0200)]
Synchronize all access on the current own identities.

9 years agoMake expression less dubious.
David ‘Bombe’ Roden [Thu, 26 Jun 2014 18:21:03 +0000 (20:21 +0200)]
Make expression less dubious.

9 years agoClose all input streams after parsing templates.
David ‘Bombe’ Roden [Thu, 26 Jun 2014 04:59:02 +0000 (06:59 +0200)]
Close all input streams after parsing templates.

9 years agoDon’t change the configuration after starting the core.
David ‘Bombe’ Roden [Wed, 25 Jun 2014 18:26:07 +0000 (20:26 +0200)]
Don’t change the configuration after starting the core.

9 years agoSkip redundant initialization.
David ‘Bombe’ Roden [Wed, 25 Jun 2014 18:20:48 +0000 (20:20 +0200)]
Skip redundant initialization.

9 years agoDeclare variables closer to where they’re first used.
David ‘Bombe’ Roden [Wed, 25 Jun 2014 18:20:17 +0000 (20:20 +0200)]
Declare variables closer to where they’re first used.

9 years agoRemove some unnecessary local variables.
David ‘Bombe’ Roden [Wed, 25 Jun 2014 17:56:36 +0000 (19:56 +0200)]
Remove some unnecessary local variables.

9 years agoRemove unnecessary return.
David ‘Bombe’ Roden [Wed, 25 Jun 2014 17:54:30 +0000 (19:54 +0200)]
Remove unnecessary return.

9 years agoSimplify some boolean expressions.
David ‘Bombe’ Roden [Wed, 25 Jun 2014 17:53:14 +0000 (19:53 +0200)]
Simplify some boolean expressions.

9 years agoAdd test case for locking and unlocking a Sone.
David ‘Bombe’ Roden [Tue, 24 Jun 2014 17:57:05 +0000 (19:57 +0200)]
Add test case for locking and unlocking a Sone.

9 years agoAdd test for restarting the wait period after changing the Sone.
David ‘Bombe’ Roden [Tue, 24 Jun 2014 17:33:35 +0000 (19:33 +0200)]
Add test for restarting the wait period after changing the Sone.

9 years agoAdd own test for starting state.
David ‘Bombe’ Roden [Tue, 24 Jun 2014 17:33:10 +0000 (19:33 +0200)]
Add own test for starting state.

9 years agoMove detection of modification into modification detector.
David ‘Bombe’ Roden [Sun, 22 Jun 2014 14:32:21 +0000 (16:32 +0200)]
Move detection of modification into modification detector.

9 years agoRefactor test.
David ‘Bombe’ Roden [Thu, 12 Jun 2014 05:29:43 +0000 (07:29 +0200)]
Refactor test.

9 years agoUse a more stable Guava version.
David ‘Bombe’ Roden [Thu, 12 Jun 2014 05:12:00 +0000 (07:12 +0200)]
Use a more stable Guava version.

9 years agoActually use the default values.
David ‘Bombe’ Roden [Thu, 12 Jun 2014 05:11:39 +0000 (07:11 +0200)]
Actually use the default values.

getParam(String) returns a default value of "" and not null so the
previous detection of “no value is set” was actually never working, and
the default in the web interface was the default used by the browser
(i.e. the first element).

9 years agoUse Sone modification detector in Sone inserter.
David ‘Bombe’ Roden [Thu, 12 Jun 2014 05:10:00 +0000 (07:10 +0200)]
Use Sone modification detector in Sone inserter.

9 years agoAdd Sone modification detector.
David ‘Bombe’ Roden [Thu, 12 Jun 2014 05:09:08 +0000 (07:09 +0200)]
Add Sone modification detector.