Sone.git
10 years agoAdd unit test for ImageAccessor.
David ‘Bombe’ Roden [Mon, 11 Nov 2013 06:20:21 +0000 (07:20 +0100)]
Add unit test for ImageAccessor.

10 years agoReact correctly when parameters are not given.
David ‘Bombe’ Roden [Sun, 10 Nov 2013 14:28:12 +0000 (15:28 +0100)]
React correctly when parameters are not given.

10 years agoAdd unit test for IdentityAccessor.
David ‘Bombe’ Roden [Sun, 10 Nov 2013 13:13:04 +0000 (14:13 +0100)]
Add unit test for IdentityAccessor.

10 years agoAdd unit test for HttpRequestAccessor.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 21:16:22 +0000 (22:16 +0100)]
Add unit test for HttpRequestAccessor.

10 years agoAdd unit test for CssClassNameFilter.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 21:14:53 +0000 (22:14 +0100)]
Add unit test for CssClassNameFilter.

10 years agoRemove unused plugin.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 21:14:46 +0000 (22:14 +0100)]
Remove unused plugin.

10 years agoUse Joiner and TO_NICE_NAME to concatenate the Sone names.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 15:34:38 +0000 (16:34 +0100)]
Use Joiner and TO_NICE_NAME to concatenate the Sone names.

10 years agoAdd function that transforms a Sone into its nice name.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 15:33:47 +0000 (16:33 +0100)]
Add function that transforms a Sone into its nice name.

10 years agoUse ComparisonChain for nice name comparator.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 15:33:34 +0000 (16:33 +0100)]
Use ComparisonChain for nice name comparator.

10 years agoAdd unit test for CollectionAccessor.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 15:33:01 +0000 (16:33 +0100)]
Add unit test for CollectionAccessor.

10 years agoExtract some functionality into their own methods.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 15:15:49 +0000 (16:15 +0100)]
Extract some functionality into their own methods.

10 years agoAdd unit test for AlbumAccessor.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 14:49:01 +0000 (15:49 +0100)]
Add unit test for AlbumAccessor.

10 years agoExpose Link class.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 14:48:45 +0000 (15:48 +0100)]
Expose Link class.

10 years agoAdd tests for isFreenetLink() and isPlainText().
David ‘Bombe’ Roden [Sat, 9 Nov 2013 14:08:39 +0000 (15:08 +0100)]
Add tests for isFreenetLink() and isPlainText().

10 years agoRework the text parser.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 13:54:11 +0000 (14:54 +0100)]
Rework the text parser.

10 years agoRemove modifier from interface.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 12:20:29 +0000 (13:20 +0100)]
Remove modifier from interface.

10 years agoExtract functions to detect long-enough links.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 00:04:42 +0000 (01:04 +0100)]
Extract functions to detect long-enough links.

10 years agoExtract function to detect whether a freenet link matches the posting Sone.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 00:02:47 +0000 (01:02 +0100)]
Extract function to detect whether a freenet link matches the posting Sone.

10 years agoExtract removal of trailing whitespace parts into its own method.
David ‘Bombe’ Roden [Sat, 9 Nov 2013 00:00:01 +0000 (01:00 +0100)]
Extract removal of trailing whitespace parts into its own method.

10 years agoExtract finding next whitespace into its own method.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 23:59:00 +0000 (00:59 +0100)]
Extract finding next whitespace into its own method.

10 years agoAlways use the correct length of the scheme.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 23:39:36 +0000 (00:39 +0100)]
Always use the correct length of the scheme.

10 years agoMove finding the next link into its own method.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 23:38:51 +0000 (00:38 +0100)]
Move finding the next link into its own method.

10 years agoAdd test case for multiple different links in one line.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 23:35:51 +0000 (00:35 +0100)]
Add test case for multiple different links in one line.

10 years agoStore in link type whether a link is an internet link.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 21:47:51 +0000 (22:47 +0100)]
Store in link type whether a link is an internet link.

10 years agoRemove unnecessary cast.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 21:44:43 +0000 (22:44 +0100)]
Remove unnecessary cast.

10 years agoRemove unused cast.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 21:44:34 +0000 (22:44 +0100)]
Remove unused cast.

10 years agoStore in link type whether a link is a freenet link.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 21:43:11 +0000 (22:43 +0100)]
Store in link type whether a link is a freenet link.

10 years agoRewrite parser tests.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 21:36:40 +0000 (22:36 +0100)]
Rewrite parser tests.

10 years agoRemove unused request.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 20:05:29 +0000 (21:05 +0100)]
Remove unused request.

10 years agoAdd unit test for SonePart.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 19:58:08 +0000 (20:58 +0100)]
Add unit test for SonePart.

10 years agoUse static import.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 19:54:21 +0000 (20:54 +0100)]
Use static import.

10 years agoAdd unit test for PostPart.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 19:13:27 +0000 (20:13 +0100)]
Add unit test for PostPart.

10 years agoOverride equals() and hashCode().
David ‘Bombe’ Roden [Fri, 8 Nov 2013 19:13:03 +0000 (20:13 +0100)]
Override equals() and hashCode().

10 years agoAdd unit test for FreenetLinkPart.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 18:03:58 +0000 (19:03 +0100)]
Add unit test for FreenetLinkPart.

10 years agoAdd unit test for LinkPart.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 18:03:51 +0000 (19:03 +0100)]
Add unit test for LinkPart.

10 years agoAdd unit test for PlainTextPart.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 18:03:39 +0000 (19:03 +0100)]
Add unit test for PlainTextPart.

10 years agoRemove unused import.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 18:03:19 +0000 (19:03 +0100)]
Remove unused import.

10 years agoOverride hashCode() and equals().
David ‘Bombe’ Roden [Fri, 8 Nov 2013 17:46:18 +0000 (18:46 +0100)]
Override hashCode() and equals().

10 years agoOverride Object methods.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 17:46:06 +0000 (18:46 +0100)]
Override Object methods.

10 years agoAdd hashCode() and equals().
David ‘Bombe’ Roden [Fri, 8 Nov 2013 17:45:41 +0000 (18:45 +0100)]
Add hashCode() and equals().

10 years agoOverride Object methods.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 17:45:28 +0000 (18:45 +0100)]
Override Object methods.

10 years agoAdd unit test for PartContainer.
David ‘Bombe’ Roden [Fri, 8 Nov 2013 17:44:57 +0000 (18:44 +0100)]
Add unit test for PartContainer.

10 years agoAdd unit test for TextFilter.
David ‘Bombe’ Roden [Sat, 2 Nov 2013 11:30:21 +0000 (12:30 +0100)]
Add unit test for TextFilter.

10 years agoAdd unit test for IntegerRangePredicate.
David ‘Bombe’ Roden [Sat, 2 Nov 2013 10:32:14 +0000 (11:32 +0100)]
Add unit test for IntegerRangePredicate.

10 years agoAdd unit test for Trust.
David ‘Bombe’ Roden [Thu, 7 Nov 2013 06:48:20 +0000 (07:48 +0100)]
Add unit test for Trust.

10 years agoAdd unit test for DefaultOwnIdentity.
David ‘Bombe’ Roden [Thu, 7 Nov 2013 06:28:23 +0000 (07:28 +0100)]
Add unit test for DefaultOwnIdentity.

10 years agoRemove unused copy-constructor.
David ‘Bombe’ Roden [Thu, 7 Nov 2013 06:28:11 +0000 (07:28 +0100)]
Remove unused copy-constructor.

10 years agoAdd unit test for DefaultIdentity.
David ‘Bombe’ Roden [Thu, 7 Nov 2013 06:22:00 +0000 (07:22 +0100)]
Add unit test for DefaultIdentity.

10 years agoUse identity change detector in identity manager.
David ‘Bombe’ Roden [Wed, 6 Nov 2013 21:39:08 +0000 (22:39 +0100)]
Use identity change detector in identity manager.

10 years agoAdd class that compares two lists of identities.
David ‘Bombe’ Roden [Wed, 6 Nov 2013 21:38:45 +0000 (22:38 +0100)]
Add class that compares two lists of identities.

10 years agoRemove unused method.
David ‘Bombe’ Roden [Wed, 6 Nov 2013 05:27:40 +0000 (06:27 +0100)]
Remove unused method.

10 years agoAdd unit test for LikeReplyCommand.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 21:45:25 +0000 (22:45 +0100)]
Add unit test for LikeReplyCommand.

10 years agoMove reply like functionality from Sone to Reply.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 21:44:57 +0000 (22:44 +0100)]
Move reply like functionality from Sone to Reply.

10 years agoCheck for correct objects.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 21:42:31 +0000 (22:42 +0100)]
Check for correct objects.

10 years agoRemove unnecessary modifier.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 21:42:05 +0000 (22:42 +0100)]
Remove unnecessary modifier.

10 years agoDon’t use raw Answer.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 21:09:42 +0000 (22:09 +0100)]
Don’t use raw Answer.

10 years agoMove isLikedPostId from Sone to Post.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 20:48:25 +0000 (21:48 +0100)]
Move isLikedPostId from Sone to Post.

10 years agoAdd unit test for LikePostCommand.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 19:39:07 +0000 (20:39 +0100)]
Add unit test for LikePostCommand.

10 years agoTrack liked posts.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 19:20:58 +0000 (20:20 +0100)]
Track liked posts.

10 years agoMove retrieval of post likes from Core to Post.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 19:20:45 +0000 (20:20 +0100)]
Move retrieval of post likes from Core to Post.

10 years agoMove unliking a post from Sone to Post.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 18:26:38 +0000 (19:26 +0100)]
Move unliking a post from Sone to Post.

10 years agoMove post liking from Sone to Post.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 18:23:35 +0000 (19:23 +0100)]
Move post liking from Sone to Post.

10 years agoAdd unit test for GetSonesCommand.
David ‘Bombe’ Roden [Tue, 5 Nov 2013 06:46:32 +0000 (07:46 +0100)]
Add unit test for GetSonesCommand.

10 years agoMock Core.getSones().
David ‘Bombe’ Roden [Tue, 5 Nov 2013 06:46:21 +0000 (07:46 +0100)]
Mock Core.getSones().

10 years agoFix test case for getOptionalSone().
David ‘Bombe’ Roden [Mon, 4 Nov 2013 21:02:00 +0000 (22:02 +0100)]
Fix test case for getOptionalSone().

10 years agoAdd unit test for GetSoneCommand.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 20:52:02 +0000 (21:52 +0100)]
Add unit test for GetSoneCommand.

10 years agoActually allow the Sone to be missing in getOptionalSone().
David ‘Bombe’ Roden [Mon, 4 Nov 2013 20:51:32 +0000 (21:51 +0100)]
Actually allow the Sone to be missing in getOptionalSone().

10 years agoAdd method to get a string with default value.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 20:47:10 +0000 (21:47 +0100)]
Add method to get a string with default value.

10 years agoRefactoring.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 06:19:19 +0000 (07:19 +0100)]
Refactoring.

10 years agoAdd unit test for GetPostsCommand.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 06:07:25 +0000 (07:07 +0100)]
Add unit test for GetPostsCommand.

10 years agoVerify Lists instead of Collections.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 06:07:04 +0000 (07:07 +0100)]
Verify Lists instead of Collections.

10 years agoUse method from Verifiers.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 05:45:14 +0000 (06:45 +0100)]
Use method from Verifiers.

10 years agoAdd unit test for VersionCommand.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 05:43:52 +0000 (06:43 +0100)]
Add unit test for VersionCommand.

10 years agoClean up imports.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 05:27:23 +0000 (06:27 +0100)]
Clean up imports.

10 years agoReturn friends as Collection, not as List.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 05:27:12 +0000 (06:27 +0100)]
Return friends as Collection, not as List.

10 years agoAdd method to expose a Post loader.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 05:27:03 +0000 (06:27 +0100)]
Add method to expose a Post loader.

10 years agoAdd method to expose a Sone loader.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 05:26:47 +0000 (06:26 +0100)]
Add method to expose a Sone loader.

10 years agoRefactoring.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 05:25:10 +0000 (06:25 +0100)]
Refactoring.

10 years agoImplement Database.getSone() function.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 05:24:54 +0000 (06:24 +0100)]
Implement Database.getSone() function.

10 years agoStore sones as a Map.
David ‘Bombe’ Roden [Mon, 4 Nov 2013 05:24:45 +0000 (06:24 +0100)]
Store sones as a Map.

10 years agoCreate mock posts differently.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 21:34:59 +0000 (22:34 +0100)]
Create mock posts differently.

10 years agoUse verify* methods from Verifiers.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 21:32:45 +0000 (22:32 +0100)]
Use verify* methods from Verifiers.

10 years agoUse verifyAnswer method in all FCP tests.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 21:30:26 +0000 (22:30 +0100)]
Use verifyAnswer method in all FCP tests.

10 years agoMove verifyAnswer method to Verifiers.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 21:24:02 +0000 (22:24 +0100)]
Move verifyAnswer method to Verifiers.

10 years agoMove name of message into method parameter.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 21:23:16 +0000 (22:23 +0100)]
Move name of message into method parameter.

10 years agoMove more post and reply verifiers to the Verifiers class.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 20:38:04 +0000 (21:38 +0100)]
Move more post and reply verifiers to the Verifiers class.

10 years agoUse yet another way to verify the posts.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 20:33:17 +0000 (21:33 +0100)]
Use yet another way to verify the posts.

10 years agoUse different method to verify a number of replies.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 20:00:11 +0000 (21:00 +0100)]
Use different method to verify a number of replies.

10 years agoAdd unit test for GetPostFeedCommand.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 19:50:48 +0000 (20:50 +0100)]
Add unit test for GetPostFeedCommand.

10 years agoAdd verifiers for the fcp package.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 19:46:46 +0000 (20:46 +0100)]
Add verifiers for the fcp package.

10 years agoMock posts with a recipient, too.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 19:46:15 +0000 (20:46 +0100)]
Mock posts with a recipient, too.

10 years agoMock a Sone’s friends in a better way.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 19:46:04 +0000 (20:46 +0100)]
Mock a Sone’s friends in a better way.

10 years agoMake mocks more complete and use them when testing the AbstractSoneCommand.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 18:14:36 +0000 (19:14 +0100)]
Make mocks more complete and use them when testing the AbstractSoneCommand.

10 years agoUse a builder-style mocker for post replies, too.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 06:20:28 +0000 (07:20 +0100)]
Use a builder-style mocker for post replies, too.

10 years agoReturn mocked replies to a post.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 06:20:06 +0000 (07:20 +0100)]
Return mocked replies to a post.

10 years agoDon’t use static imports if more than one TIME_COMPARATOR is used.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 06:19:28 +0000 (07:19 +0100)]
Don’t use static imports if more than one TIME_COMPARATOR is used.

10 years agoMock posts with a mocker, too.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 06:04:14 +0000 (07:04 +0100)]
Mock posts with a mocker, too.

10 years agoRemove unnecessary mocks.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 06:03:56 +0000 (07:03 +0100)]
Remove unnecessary mocks.

10 years agoReplace Sone mock methods with a mock builder.
David ‘Bombe’ Roden [Wed, 30 Oct 2013 05:58:03 +0000 (06:58 +0100)]
Replace Sone mock methods with a mock builder.

10 years agoAdd unit test for GetPostCommand.
David ‘Bombe’ Roden [Tue, 29 Oct 2013 20:09:16 +0000 (21:09 +0100)]
Add unit test for GetPostCommand.