Sone.git
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.

10 years agoRemove unnecessary local variable.
David ‘Bombe’ Roden [Tue, 29 Oct 2013 19:00:44 +0000 (20:00 +0100)]
Remove unnecessary local variable.

10 years agoAdd unit test for GetLocalSonesCommand.
David ‘Bombe’ Roden [Tue, 29 Oct 2013 06:10:14 +0000 (07:10 +0100)]
Add unit test for GetLocalSonesCommand.

10 years agoImplement local Sone filter by using isLocal().
David ‘Bombe’ Roden [Tue, 29 Oct 2013 06:09:54 +0000 (07:09 +0100)]
Implement local Sone filter by using isLocal().

10 years agoMemorize all mocked Sones and implement getLocalSones().
David ‘Bombe’ Roden [Tue, 29 Oct 2013 06:09:32 +0000 (07:09 +0100)]
Memorize all mocked Sones and implement getLocalSones().

10 years agoMock Sone.toString() for nicer debug output.
David ‘Bombe’ Roden [Tue, 29 Oct 2013 06:09:11 +0000 (07:09 +0100)]
Mock Sone.toString() for nicer debug output.

10 years agoAdd unit test for Sone.TO_POSTS.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 21:11:31 +0000 (22:11 +0100)]
Add unit test for Sone.TO_POSTS.

10 years agoUse method for common mocked Sone initialization.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 21:10:49 +0000 (22:10 +0100)]
Use method for common mocked Sone initialization.

10 years agoTurn Mocks into a stateful object.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 21:08:18 +0000 (22:08 +0100)]
Turn Mocks into a stateful object.

10 years agoSplit Sone mocking back into two separate methods again.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 21:07:48 +0000 (22:07 +0100)]
Split Sone mocking back into two separate methods again.

10 years agoAdd a function to transform a Sone into its posts.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:52:35 +0000 (21:52 +0100)]
Add a function to transform a Sone into its posts.

10 years agoStore mocked posts and return them from the Sone.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:52:19 +0000 (21:52 +0100)]
Store mocked posts and return them from the Sone.

10 years agoRemove imports.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:51:33 +0000 (21:51 +0100)]
Remove imports.

10 years agoDon’t use an argument captor when using an answer.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:50:54 +0000 (21:50 +0100)]
Don’t use an argument captor when using an answer.

10 years agoReturn an empty profile from a mocked Sone.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:50:24 +0000 (21:50 +0100)]
Return an empty profile from a mocked Sone.

10 years agoNo adding posts to a remote Sone!
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:50:14 +0000 (21:50 +0100)]
No adding posts to a remote Sone!

10 years agoMock local Sones by mocking remote Sones and re-mocking some methods.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:50:00 +0000 (21:50 +0100)]
Mock local Sones by mocking remote Sones and re-mocking some methods.

10 years agoAdd unit test for DeleteReplyCommand.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 18:21:23 +0000 (19:21 +0100)]
Add unit test for DeleteReplyCommand.

10 years agoAdd method to mock post replies, too.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 18:21:00 +0000 (19:21 +0100)]
Add method to mock post replies, too.

10 years agoActually delete the reply.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 18:20:51 +0000 (19:20 +0100)]
Actually delete the reply.

10 years agoAdd unit test for DeletePostCommand.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:59:19 +0000 (22:59 +0100)]
Add unit test for DeletePostCommand.

10 years agoWhitespace.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:59:12 +0000 (22:59 +0100)]
Whitespace.

10 years agoActually delete the post.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:59:08 +0000 (22:59 +0100)]
Actually delete the post.

10 years agoAdd method to mock a remote Sone.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:59:00 +0000 (22:59 +0100)]
Add method to mock a remote Sone.

10 years agoRequire a Sone when mocking a post.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:58:44 +0000 (22:58 +0100)]
Require a Sone when mocking a post.

10 years agoAdd unit test for CreateReplyCommand.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:15:46 +0000 (22:15 +0100)]
Add unit test for CreateReplyCommand.

10 years agoAdd methods to mock a post.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:15:18 +0000 (22:15 +0100)]
Add methods to mock a post.

10 years agoReturn a useful reply builder on a mocked Sone.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:15:09 +0000 (22:15 +0100)]
Return a useful reply builder on a mocked Sone.

10 years agoAdd unit test for CreatePostCommand.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 16:49:51 +0000 (18:49 +0200)]
Add unit test for CreatePostCommand.

10 years agoAdd reusable mocks.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 16:49:26 +0000 (18:49 +0200)]
Add reusable mocks.

10 years agoRemove annotation, the function can return null.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 15:52:03 +0000 (17:52 +0200)]
Remove annotation, the function can return null.

10 years agoAdd unit test for abstract command.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 15:43:03 +0000 (17:43 +0200)]
Add unit test for abstract command.

10 years agoFix InputStream matcher.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 15:24:16 +0000 (17:24 +0200)]
Fix InputStream matcher.

10 years agoReverse initial active state to make tests clearer.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 13:04:03 +0000 (15:04 +0200)]
Reverse initial active state to make tests clearer.

10 years agoExplicitely set initial state of FCP interface.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 13:02:48 +0000 (15:02 +0200)]
Explicitely set initial state of FCP interface.

10 years agoAdd unit test for FCP interface.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 12:56:03 +0000 (14:56 +0200)]
Add unit test for FCP interface.

10 years agoHandle exception when replying only once.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 12:55:11 +0000 (14:55 +0200)]
Handle exception when replying only once.

10 years agoAdd method to add a command for testing.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 12:54:48 +0000 (14:54 +0200)]
Add method to add a command for testing.

10 years agoAdd method that verifies multiple posts with replies.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:40:01 +0000 (03:40 +0200)]
Add method that verifies multiple posts with replies.

10 years agoAdd method that verifies multiple posts.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:35:25 +0000 (03:35 +0200)]
Add method that verifies multiple posts.

10 years agoAdd method that verifies post replies.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:34:06 +0000 (03:34 +0200)]
Add method that verifies post replies.

10 years agoAdd method that verifies a post.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:33:32 +0000 (03:33 +0200)]
Add method that verifies a post.

10 years agoAdd tests for encoding multiple posts.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:13:46 +0000 (03:13 +0200)]
Add tests for encoding multiple posts.

10 years agoFilter future replies when encoding single posts.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:06:03 +0000 (03:06 +0200)]
Filter future replies when encoding single posts.

10 years agoUse a static import.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:05:40 +0000 (03:05 +0200)]
Use a static import.

10 years agoAdd tests for encoding a single post.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 00:43:15 +0000 (02:43 +0200)]
Add tests for encoding a single post.

10 years agoRequire a recipient when creating a post.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 00:09:56 +0000 (02:09 +0200)]
Require a recipient when creating a post.

10 years agoAlso require a time when creating a post.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 00:04:18 +0000 (02:04 +0200)]
Also require a time when creating a post.

10 years agoAlso require the text when creating a post.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 00:01:45 +0000 (02:01 +0200)]
Also require the text when creating a post.

10 years agoRequire a Sone when creating a post.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:59:55 +0000 (01:59 +0200)]
Require a Sone when creating a post.

10 years agoSplit post encoding methods to remove boolean parameters.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:55:10 +0000 (01:55 +0200)]
Split post encoding methods to remove boolean parameters.

10 years agoAdd tests for parsing a reply.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:54:20 +0000 (01:54 +0200)]
Add tests for parsing a reply.

10 years agoAdd tests for parsing a post.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:25:13 +0000 (01:25 +0200)]
Add tests for parsing a post.

10 years agoAdd tests for parsing optional Sones.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:09:43 +0000 (01:09 +0200)]
Add tests for parsing optional Sones.