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

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

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

10 years agoRemove booleans from method signatures, create explicit methods.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 23:05:22 +0000 (01:05 +0200)]
Remove booleans from method signatures, create explicit methods.

10 years agoAdd test for encoding likes.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 22:17:26 +0000 (00:17 +0200)]
Add test for encoding likes.

10 years agoAdd method to test encoding of replies.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 21:56:26 +0000 (23:56 +0200)]
Add method to test encoding of replies.

10 years agoRefactor Sone creation.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 21:40:37 +0000 (23:40 +0200)]
Refactor Sone creation.

10 years agoAdd test for encoding multiple Sones.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:59:01 +0000 (19:59 +0200)]
Add test for encoding multiple Sones.

10 years agoAdd method to create a profile with a given name.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:58:45 +0000 (19:58 +0200)]
Add method to create a profile with a given name.

10 years agoAdd tests for verifying the “Followed” attribute if a local Sone is given.
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.

10 years agoAlso test for non-existing “Followed” property when no 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.

10 years agoAdd test for encoding a Sone.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:29:51 +0000 (19:29 +0200)]
Add test for encoding a Sone.

10 years agoMove test string creation into its own method.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:29:39 +0000 (19:29 +0200)]
Move test string creation into its own method.

10 years agoFix bug in text encoding method.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:14:57 +0000 (19:14 +0200)]
Fix bug in text encoding method.

10 years agoAdd unit test for AbstractSoneCommand.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 17:14:48 +0000 (19:14 +0200)]
Add unit test for AbstractSoneCommand.

10 years agoAdd unit test for Client.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 16:56:41 +0000 (18:56 +0200)]
Add unit test for Client.

10 years agoAdd unit test for TemporaryImage.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 16:53:26 +0000 (18:53 +0200)]
Add unit test for TemporaryImage.

10 years agoVerify that the avatar ID belongs to an image of the Sone.
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.

10 years agoIf no albums are in the Sone, there’s no avatar ID, either.
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.

10 years agoMove protocol version handling and time parsing into their own methods.
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.

10 years agoThrow a different exception if a Sone is too new.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:20:11 +0000 (07:20 +0200)]
Throw a different exception if a Sone is too new.

10 years agoFix formatting.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:15:32 +0000 (07:15 +0200)]
Fix formatting.

10 years agoRemove some impossible-to-trigger code.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:15:26 +0000 (07:15 +0200)]
Remove some impossible-to-trigger code.

10 years agoRemove unnecessary parameter.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 05:05:53 +0000 (07:05 +0200)]
Remove unnecessary parameter.

10 years agoVerify that a invalid Sone time causes an error.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:56:18 +0000 (06:56 +0200)]
Verify that a invalid Sone time causes an error.

10 years agoVerify that a missing protocol version does not cause 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.

10 years agoVerify that an image with invalid dimensions causes 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.

10 years agoVerify that an invalid image 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.

10 years agoVerify that an invalid parent album 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.

10 years agoVerify that an invalid 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.

10 years agoVerify that a missing <albums> section does not cause 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.

10 years agoVerify that a missing <replies> 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.

10 years agoVerify that a missing post-likes 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.

10 years agoRename test for invalid post times.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:28:56 +0000 (06:28 +0200)]
Rename test for invalid post times.

10 years agoThrow exception on invalid reply times.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:28:14 +0000 (06:28 +0200)]
Throw exception on invalid reply times.

10 years agoThrow exception on invalid replies.
David ‘Bombe’ Roden [Fri, 25 Oct 2013 04:26:42 +0000 (06:26 +0200)]
Throw exception on invalid replies.

10 years agoVerify that a missing <replies> section does not cause an error.
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.

10 years agoAdd test for malformed post time.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 21:05:49 +0000 (23:05 +0200)]
Add test for malformed post time.

10 years agoAdd test for malformed post XML.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 21:05:40 +0000 (23:05 +0200)]
Add test for malformed post XML.

10 years agoThrow special exception if a time can not be parsed.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 21:05:23 +0000 (23:05 +0200)]
Throw special exception if a time can not be parsed.

10 years agoThrow exception when a post misses something vital.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 21:05:09 +0000 (23:05 +0200)]
Throw exception when a post misses something vital.

10 years agoTest that a missing <posts> section does not cause a parse error.
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.

10 years agoAdd tests for invalid and duplicate fields.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:59:07 +0000 (22:59 +0200)]
Add tests for invalid and duplicate fields.

10 years agoThrow a duplicate field exception when a duplicate field is parsed.
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.

10 years agoThrow malformed XML exception when fields can not be 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.

10 years agoThrow the correct exception when a duplicate field is added.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:58:12 +0000 (22:58 +0200)]
Throw the correct exception when a duplicate field is added.

10 years agoAdd tests for missing and empty profiles.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:52:41 +0000 (22:52 +0200)]
Add tests for missing and empty profiles.

10 years agoFix imports.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:52:31 +0000 (22:52 +0200)]
Fix imports.

10 years agoUse better dependencies.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:49:34 +0000 (22:49 +0200)]
Use better dependencies.

10 years agoUse exceptions to signal an error when parsing a Sone.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:14:18 +0000 (22:14 +0200)]
Use exceptions to signal an error when parsing a Sone.

10 years agoRevert "Return an optional from the Sone parser."
David ‘Bombe’ Roden [Thu, 24 Oct 2013 20:11:46 +0000 (22:11 +0200)]
Revert "Return an optional from the Sone parser."

This reverts commit d0c2a68e24423a41f1e7a592d1f45f7551f7cc10.

Conflicts:

src/test/java/net/pterodactylus/sone/core/SoneParserTest.java

10 years agoAdd test for an invalid client.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 19:59:15 +0000 (21:59 +0200)]
Add test for an invalid client.

10 years agoReturn absent() instead of null.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 19:59:04 +0000 (21:59 +0200)]
Return absent() instead of null.

10 years agoUse XML files for all error conditions, expand test for complete Sone.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 19:53:15 +0000 (21:53 +0200)]
Use XML files for all error conditions, expand test for complete Sone.

10 years agoUse the ID of a reply instead of a post.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 19:52:50 +0000 (21:52 +0200)]
Use the ID of a reply instead of a post.

10 years agoAdd recipient for one of the posts.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 19:52:38 +0000 (21:52 +0200)]
Add recipient for one of the posts.

10 years agoInclude EMMA plugin for code coverage.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 17:12:51 +0000 (19:12 +0200)]
Include EMMA plugin for code coverage.

10 years agoRemove some very obvious javadoc comments.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 05:21:31 +0000 (07:21 +0200)]
Remove some very obvious javadoc comments.

10 years agoAdd more tests.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 05:18:30 +0000 (07:18 +0200)]
Add more tests.

10 years agoDon’t use the fingerprint of a field that has a null value.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 05:18:19 +0000 (07:18 +0200)]
Don’t use the fingerprint of a field that has a null value.

10 years agoTest setting a/no avatar.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 05:01:38 +0000 (07:01 +0200)]
Test setting a/no avatar.

10 years agoDon’t throw exception when removing a field that is not in the profile.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 05:01:26 +0000 (07:01 +0200)]
Don’t throw exception when removing a field that is not in the profile.

10 years agoAdd lots of tests for the profile.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 04:54:48 +0000 (06:54 +0200)]
Add lots of tests for the profile.

10 years agoDon’t throw exceptions when moving up/down the first/last profile field.
David ‘Bombe’ Roden [Thu, 24 Oct 2013 04:54:30 +0000 (06:54 +0200)]
Don’t throw exceptions when moving up/down the first/last profile field.

10 years agoInclude hamcrest in dependencies.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:51:57 +0000 (07:51 +0200)]
Include hamcrest in dependencies.

10 years agoFix duplicate-field detection.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:51:44 +0000 (07:51 +0200)]
Fix duplicate-field detection.

10 years agoFix javadoc.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:49:31 +0000 (07:49 +0200)]
Fix javadoc.

10 years agoReturn optionals of fields.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:49:12 +0000 (07:49 +0200)]
Return optionals of fields.

10 years agoMake profile fields immutable.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:39:10 +0000 (07:39 +0200)]
Make profile fields immutable.

10 years agoUse helper method.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:08:27 +0000 (07:08 +0200)]
Use helper method.

10 years agoAdd method to set the value of a field.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:08:22 +0000 (07:08 +0200)]
Add method to set the value of a field.

10 years agoAdd test for adding a field.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:01:46 +0000 (07:01 +0200)]
Add test for adding a field.

10 years agoUse renameField method to rename fields.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 05:01:05 +0000 (07:01 +0200)]
Use renameField method to rename fields.

10 years agoRename FieldTest to ProfileTest.
David ‘Bombe’ Roden [Wed, 23 Oct 2013 04:46:41 +0000 (06:46 +0200)]
Rename FieldTest to ProfileTest.

10 years agoAdd method to rename a field.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 21:06:32 +0000 (23:06 +0200)]
Add method to rename a field.

10 years agoAdd Field constructor that takes all values.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 21:05:43 +0000 (23:05 +0200)]
Add Field constructor that takes all values.

10 years agoUse XML file to test a complete Sone.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 06:12:59 +0000 (08:12 +0200)]
Use XML file to test a complete Sone.

10 years agoUse a real XML file for testing.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 06:11:07 +0000 (08:11 +0200)]
Use a real XML file for testing.

10 years agoStore all albums.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 06:10:32 +0000 (08:10 +0200)]
Store all albums.

10 years agoStore parent album ID in abstract album.
David ‘Bombe’ Roden [Tue, 22 Oct 2013 06:10:20 +0000 (08:10 +0200)]
Store parent album ID in abstract album.

10 years agoTest that a missing timestamp causes the Sone not to be parsed.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 20:23:35 +0000 (22:23 +0200)]
Test that a missing timestamp causes the Sone not to be parsed.

10 years agoDon’t echo the HTML to stdout.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 20:17:21 +0000 (22:17 +0200)]
Don’t echo the HTML to stdout.

10 years agoDeactivate the logger for the test.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 20:17:06 +0000 (22:17 +0200)]
Deactivate the logger for the test.

10 years agoUse latest utils snapshot.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 20:16:48 +0000 (22:16 +0200)]
Use latest utils snapshot.

10 years agoReturn an optional from the Sone parser.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 05:13:21 +0000 (07:13 +0200)]
Return an optional from the Sone parser.

10 years agoRemove declared exception.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 05:11:12 +0000 (07:11 +0200)]
Remove declared exception.

10 years agoClean up imports.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 05:04:06 +0000 (07:04 +0200)]
Clean up imports.

10 years agoRemove declared exception, it's never thrown.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 05:04:02 +0000 (07:04 +0200)]
Remove declared exception, it's never thrown.

10 years agoVerify that a Sone with a too large protocol version will not be parsed.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 04:50:16 +0000 (06:50 +0200)]
Verify that a Sone with a too large protocol version will not be parsed.

10 years agoAdd unit test for the Sone parser.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 04:38:21 +0000 (06:38 +0200)]
Add unit test for the Sone parser.

10 years agoLog the content of the protocol version optionals.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 04:36:10 +0000 (06:36 +0200)]
Log the content of the protocol version optionals.

10 years agoOnly log the IDs of Sones.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 04:35:51 +0000 (06:35 +0200)]
Only log the IDs of Sones.

10 years agoStore the avatar ID differently in profile.
David ‘Bombe’ Roden [Mon, 21 Oct 2013 04:35:23 +0000 (06:35 +0200)]
Store the avatar ID differently in profile.

10 years agoUse the given database instead of the core to load images.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:58:03 +0000 (02:58 +0200)]
Use the given database instead of the core to load images.

10 years agoFix synchronisation.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:32:09 +0000 (02:32 +0200)]
Fix synchronisation.

10 years agoAdd database parameter to Sone parser.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:31:56 +0000 (02:31 +0200)]
Add database parameter to Sone parser.

10 years agoClean up imports.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:09:49 +0000 (02:09 +0200)]
Clean up imports.

10 years agoActually return a Sone builder.
David ‘Bombe’ Roden [Sun, 20 Oct 2013 00:09:43 +0000 (02:09 +0200)]
Actually return a Sone builder.