David ‘Bombe’ Roden [Tue, 29 Oct 2013 19:00:44 +0000 (20:00 +0100)]
Remove unnecessary local variable.
David ‘Bombe’ Roden [Tue, 29 Oct 2013 06:10:14 +0000 (07:10 +0100)]
Add unit test for GetLocalSonesCommand.
David ‘Bombe’ Roden [Tue, 29 Oct 2013 06:09:54 +0000 (07:09 +0100)]
Implement local Sone filter by using isLocal().
David ‘Bombe’ Roden [Tue, 29 Oct 2013 06:09:32 +0000 (07:09 +0100)]
Memorize all mocked Sones and implement getLocalSones().
David ‘Bombe’ Roden [Tue, 29 Oct 2013 06:09:11 +0000 (07:09 +0100)]
Mock Sone.toString() for nicer debug output.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 21:11:31 +0000 (22:11 +0100)]
Add unit test for Sone.TO_POSTS.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 21:10:49 +0000 (22:10 +0100)]
Use method for common mocked Sone initialization.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 21:08:18 +0000 (22:08 +0100)]
Turn Mocks into a stateful object.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 21:07:48 +0000 (22:07 +0100)]
Split Sone mocking back into two separate methods again.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:52:35 +0000 (21:52 +0100)]
Add a function to transform a Sone into its posts.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:52:19 +0000 (21:52 +0100)]
Store mocked posts and return them from the Sone.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:51:33 +0000 (21:51 +0100)]
Remove imports.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:50:54 +0000 (21:50 +0100)]
Don’t use an argument captor when using an answer.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:50:24 +0000 (21:50 +0100)]
Return an empty profile from a mocked Sone.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 20:50:14 +0000 (21:50 +0100)]
No adding posts to a remote Sone!
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.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 18:21:23 +0000 (19:21 +0100)]
Add unit test for DeleteReplyCommand.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 18:21:00 +0000 (19:21 +0100)]
Add method to mock post replies, too.
David ‘Bombe’ Roden [Mon, 28 Oct 2013 18:20:51 +0000 (19:20 +0100)]
Actually delete the reply.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:59:19 +0000 (22:59 +0100)]
Add unit test for DeletePostCommand.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:59:12 +0000 (22:59 +0100)]
Whitespace.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:59:08 +0000 (22:59 +0100)]
Actually delete the post.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:59:00 +0000 (22:59 +0100)]
Add method to mock a remote Sone.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:58:44 +0000 (22:58 +0100)]
Require a Sone when mocking a post.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:15:46 +0000 (22:15 +0100)]
Add unit test for CreateReplyCommand.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:15:18 +0000 (22:15 +0100)]
Add methods to mock a post.
David ‘Bombe’ Roden [Sun, 27 Oct 2013 21:15:09 +0000 (22:15 +0100)]
Return a useful reply builder on a mocked Sone.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 16:49:51 +0000 (18:49 +0200)]
Add unit test for CreatePostCommand.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 16:49:26 +0000 (18:49 +0200)]
Add reusable mocks.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 15:52:03 +0000 (17:52 +0200)]
Remove annotation, the function can return null.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 15:43:03 +0000 (17:43 +0200)]
Add unit test for abstract command.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 15:24:16 +0000 (17:24 +0200)]
Fix InputStream matcher.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 13:04:03 +0000 (15:04 +0200)]
Reverse initial active state to make tests clearer.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 13:02:48 +0000 (15:02 +0200)]
Explicitely set initial state of FCP interface.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 12:56:03 +0000 (14:56 +0200)]
Add unit test for FCP interface.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 12:55:11 +0000 (14:55 +0200)]
Handle exception when replying only once.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 12:54:48 +0000 (14:54 +0200)]
Add method to add a command for testing.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:40:01 +0000 (03:40 +0200)]
Add method that verifies multiple posts with replies.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:35:25 +0000 (03:35 +0200)]
Add method that verifies multiple posts.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:34:06 +0000 (03:34 +0200)]
Add method that verifies post replies.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:33:32 +0000 (03:33 +0200)]
Add method that verifies a post.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:13:46 +0000 (03:13 +0200)]
Add tests for encoding multiple posts.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:06:03 +0000 (03:06 +0200)]
Filter future replies when encoding single posts.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 01:05:40 +0000 (03:05 +0200)]
Use a static import.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 00:43:15 +0000 (02:43 +0200)]
Add tests for encoding a single post.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 00:09:56 +0000 (02:09 +0200)]
Require a recipient 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.
David ‘Bombe’ Roden [Sat, 26 Oct 2013 00:01:45 +0000 (02:01 +0200)]
Also require the text 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.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:55:10 +0000 (01:55 +0200)]
Split post encoding methods to remove boolean parameters.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:54:20 +0000 (01:54 +0200)]
Add tests for parsing a reply.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:25:13 +0000 (01:25 +0200)]
Add tests for parsing a post.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:09:43 +0000 (01:09 +0200)]
Add tests for parsing optional Sones.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:06:19 +0000 (01:06 +0200)]
Add tests for parsing mandatory local Sones.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:06:03 +0000 (01:06 +0200)]
Add tests for parsing mandatory Sones.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:05:22 +0000 (01:05 +0200)]
Remove booleans from method signatures, create explicit methods.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 22:17:26 +0000 (00:17 +0200)]
Add test for encoding likes.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 21:56:26 +0000 (23:56 +0200)]
Add method to test encoding of replies.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 21:40:37 +0000 (23:40 +0200)]
Refactor Sone creation.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:59:01 +0000 (19:59 +0200)]
Add test for encoding multiple Sones.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:58:45 +0000 (19:58 +0200)]
Add method to create a profile with a given name.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:34:47 +0000 (19:34 +0200)]
Add tests for verifying the “Followed” attribute if a local Sone is given.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:34:23 +0000 (19:34 +0200)]
Also test for non-existing “Followed” property when no local Sone is given.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:29:51 +0000 (19:29 +0200)]
Add test for encoding a Sone.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:29:39 +0000 (19:29 +0200)]
Move test string creation into its own method.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:14:57 +0000 (19:14 +0200)]
Fix bug in text encoding method.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:14:48 +0000 (19:14 +0200)]
Add unit test for AbstractSoneCommand.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 16:56:41 +0000 (18:56 +0200)]
Add unit test for Client.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 16:53:26 +0000 (18:53 +0200)]
Add unit test for TemporaryImage.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:31:41 +0000 (07:31 +0200)]
Verify that the avatar ID belongs to an image of the Sone.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:31:22 +0000 (07:31 +0200)]
If no albums are in the Sone, there’s no avatar ID, either.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:23:28 +0000 (07:23 +0200)]
Move protocol version handling and time parsing into their own methods.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:20:11 +0000 (07:20 +0200)]
Throw a different exception if a Sone is too new.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:15:32 +0000 (07:15 +0200)]
Fix formatting.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:15:26 +0000 (07:15 +0200)]
Remove some impossible-to-trigger code.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:05:53 +0000 (07:05 +0200)]
Remove unnecessary parameter.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:56:18 +0000 (06:56 +0200)]
Verify that a invalid Sone time causes an error.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:54:05 +0000 (06:54 +0200)]
Verify that a missing protocol version does not cause an error.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:50:47 +0000 (06:50 +0200)]
Verify that an image with invalid dimensions causes an error.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:47:09 +0000 (06:47 +0200)]
Verify that an invalid image causes an error.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:44:50 +0000 (06:44 +0200)]
Verify that an invalid parent album causes an error.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:44:38 +0000 (06:44 +0200)]
Verify that an invalid album causes an error.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:40:14 +0000 (06:40 +0200)]
Verify that a missing <albums> section does not cause an error.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:39:58 +0000 (06:39 +0200)]
Verify that a missing <replies> section does not cause an error.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:34:35 +0000 (06:34 +0200)]
Verify that a missing post-likes section does not cause an error.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:28:56 +0000 (06:28 +0200)]
Rename test for invalid post times.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:28:14 +0000 (06:28 +0200)]
Throw exception on invalid reply times.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:26:42 +0000 (06:26 +0200)]
Throw exception on invalid replies.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:24:01 +0000 (06:24 +0200)]
Verify that a missing <replies> section does not cause an error.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 21:05:49 +0000 (23:05 +0200)]
Add test for malformed post time.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 21:05:40 +0000 (23:05 +0200)]
Add test for malformed post XML.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 21:05:23 +0000 (23:05 +0200)]
Throw special exception if a time can not be parsed.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 21:05:09 +0000 (23:05 +0200)]
Throw exception when a post misses something vital.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 21:00:48 +0000 (23:00 +0200)]
Test that a missing <posts> section does not cause a parse error.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:59:07 +0000 (22:59 +0200)]
Add tests for invalid and duplicate fields.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:58:55 +0000 (22:58 +0200)]
Throw a duplicate field exception when a duplicate field is parsed.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:58:40 +0000 (22:58 +0200)]
Throw malformed XML exception when fields can not be parsed.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:58:12 +0000 (22:58 +0200)]
Throw the correct exception when a duplicate field is added.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:52:41 +0000 (22:52 +0200)]
Add tests for missing and empty profiles.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:52:31 +0000 (22:52 +0200)]
Fix imports.