Git Product home page Git Product logo

vk-uploader's Introduction

VK-Uploader

Winner Badge

EO principles respected here DevOps By Rultor.com We recommend IntelliJ IDEA

Build Status

Maven Central Javadoc

jPeek Report SonarQube

Coverage Status

Dependabot Status

Code climate codebeat badge Codacy Badge

PDD status

License

VK-Uploader is a true object-oriented and immutable VK (Вконтакте) group management utility. It is based on EO principles:

  1. No null usage (why NULL is bad?)
  2. No static methods (why they are bad?)
    • No public static methods
    • No private static methods
  3. No mutable classes (why they are bad?)
  4. No instanceof keyword usage, type casting, or reflection (why?)
  5. No code in constructors (why?)
  6. No getters and setters (why?)
  7. No public methods without contract (interface) (why?)
  8. No statements in test methods except assertThat (why?)
  9. No implementation inheritance (why? and why?)

Core Entities (Interfaces)

This interface is implemented by the classes which construct (decorate) VK WallPosts. For example the WallPostBase class is a fundamental implementation of that interface, as it encapsulates a VK API client instance and a UserActor instance.

Other implementations of this interface, such as WallPostWithMessage or WallPostWithAttachments add content to a wall post (text and attachments, accordingly).

Also, there are some convenient implementations of that interface, such as WallPostMusicAlbum or WallPostPhotoAlbum, which create a WallPost with audio (music album and a album artwork) or image (photo album) content.

A full list of classes implementing this interface can be found in the package wallpost.

In addition, the examples, which showcase how to utilize this interface and its implementations can be found in corresponding test package.

This interface is implemented by the classes which generate a series of WallPosts and combine them into a list of ExecuteBatchQueries. After the queries are executed, the updateProperties method shall be called in order to cache the queries` results. (usually with properties files).

This interface is implemented by classes which create WallPosts. For example, the PostableRootDir class creates WallPosts from the provided directory.

This interface serves as an entry point to the WallPosts. The classes which implement this interface create WallPosts using a Posts instance and then post (execute the generated queries) them.

Application starting point. The EntranceDirectory class, for instance, tracks the provided folder for changes and acts upon them (creates WallPosts and executes them).

Maven

  1. Qulice (static analysis check)
    $ mvn clean test -DskipTests=true qulice:check
    
  2. Unit tests
    $ mvn clean test
    
  3. Integration Tests
    $ clean verify -Dvk.userId= -Dvk.groupId= -Dvk.token=
    
  4. Full Pre-push validation (static analysis + unit tests + integration tests)
    $ mvn clean verify qulice:check -Dvk.userId= -Dvk.groupId= -Dvk.token=
    
  5. Test coverage report (located in VK-Uploader/target/site)
    $ mvn clean test jacoco:report
    

For more info see Authorization Code Flow for User Access Token

How to contribute

Fork repository, make changes, send us a pull request. We will review your changes and apply them to the master branch shortly, provided they don't violate our quality standards. To avoid frustration, before sending us your pull request please run full Maven build:

$ mvn clean test -DskipTests=true qulice:check

To avoid build errors use maven 3.2+.

Pay attention that our pom.xml inherits a lot of configuration from jcabi-parent. This article explains why it's done this way.

Got questions?

If you have questions or general suggestions, don't hesitate to submit a new Github issue.

vk-uploader's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar driver733 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

emir0515

vk-uploader's Issues

ImmutablePropertiesTest.java:39-39: Test all conditions to get 100% test...

The puzzle 23-dd21d91e (from #23) in src/test/java/com/driver733/vkmusicuploader/properties/ImmutablePropertiesTest.java (lines 39-39) has to be resolved: "Test all conditions to get 100% test coverage."

The puzzle was created by driver733 on 28-Sep-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

BasicTagTest.java:43-43: Write tests for other conditions.

The puzzle 36-ca71c469 in src/test/java/com/driver733/vkmusicuploader/wallpost/attachment/support/mp3filefromfile/basictag/BasicTagTest.java (lines 43-43) has to be resolved: "Write tests for other conditions."

The puzzle was created by Mikhail Yakushin on 22-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Test 0pdd

Test 0pdd by creating a puzzle and then replacing it with a new one.
The new puzzle might not get processed.

Attach an archive with audio files to album wall post

Add an option to attach an archive with audio files to a music album wall post.
The archive will be created, uploaded to the VK as a document and then attached to all album wall post associated with it. (If album consists of more than 8 songs and thus does not fit into one wall post)

AttachmentWallPhotoTest.java:50-50: Replace constant with maven parameter.

The puzzle 15-a3985184 in src/test/java/com/driver733/vkmusicuploader/wallpost/attachment/AttachmentWallPhotoTest.java (lines 50-50) has to be resolved: "Replace constant with maven parameter."

The puzzle was created by Mikhail Yakushin on 25-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

ID3v1AnnotatedSafeTest.java:203-203: Figure out why year tag is not working.

The puzzle 21-2426a3bf in src/test/java/com/driver733/vkmusicuploader/wallpost/attachment/message/ID3v1AnnotatedSafeTest.java (lines 203-203) has to be resolved: "Figure out why year tag is not working."

The puzzle was created by Mikhail Yakushin on 27-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

AttachmentAddAudio.java:46-46: Make tests for this class.

The puzzle 8-f5cccfe1 in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/AttachmentAddAudio.java (lines 46-46) has to be resolved: "Make tests for this class."

The puzzle was created by Mikhail Yakushin on 23-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

AttachmentAddAudioTest.java:50-50: Replace group id constant with maven...

The puzzle 14-9f3691a5 in src/test/java/com/driver733/vkmusicuploader/wallpost/attachment/AttachmentAddAudioTest.java (lines 50-50) has to be resolved: "Replace group id constant with maven exec param."

The puzzle was created by Mikhail Yakushin on 24-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

UploadServers.java:42-42: Create applicable tests for this class.

The puzzle 12-b4c1fba3 in src/main/java/com/driver733/vkmusicuploader/post/UploadServers.java (lines 42-42) has to be resolved: "Create applicable tests for this class."

The puzzle was created by Mikhail Yakushin on 23-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

ID3v1AnnotatedSafeTest.java:45-45: Test other conditions (both valid and...

The puzzle 20-7c7a51a6 in src/test/java/com/driver733/vkmusicuploader/wallpost/attachment/message/ID3v1AnnotatedSafeTest.java (lines 45-45) has to be resolved: "Test other conditions (both valid and invalid)."

The puzzle was created by Mikhail Yakushin on 26-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

PostRootDir.java:42-42: Write necessary tests for this class.

The puzzle 9-1210338c in src/main/java/com/driver733/vkmusicuploader/post/PostRootDir.java (lines 42-42) has to be resolved: "Write necessary tests for this class."

The puzzle was created by Mikhail Yakushin on 23-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

CachedAudioAddQuery.java:46-46: Write tests for this class.

The puzzle 5-24e55ea2 in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/CachedAudioAddQuery.java (lines 46-46) has to be resolved: "Write tests for this class."

The puzzle was created by Mikhail Yakushin on 23-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

SampleTest.java:52-52: Create a proper name for the test class.

The puzzle 1-ac822df9 in src/test/java/com/driver733/vkmusicuploader/SampleTest.java (lines 52-52) has to be resolved: "Create a proper name for the test class."

The puzzle was created by Mikhail Yakushin on 19-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

AttachmentsFromResults.java:47-47: Need to create a test for this class.

The puzzle 2-e0748a04 in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/support/AttachmentsFromResults.java (lines 47-47) has to be resolved: "Need to create a test for this class."

The puzzle was created by Mikhail Yakushin on 21-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

CachedAudioAddQuery.java:45-45: Change class definition to generic one.

The puzzle 4-1eba2b49 in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/CachedAudioAddQuery.java (lines 45-45) has to be resolved: "Change class definition to generic one."

The puzzle was created by Mikhail Yakushin on 23-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

UploadWallPhoto.java:43-43: Move Fallback handing to a new class.

The puzzle 16-265a60e7 in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/UploadWallPhoto.java (lines 43-43) has to be resolved: "Move Fallback handing to a new class."

The puzzle was created by Mikhail Yakushin on 25-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

FallbackByteArrayImage.java:43-43: Create tests for the class.

The puzzle 36-ef8f876a in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/support/mp3filefromfile/bytearray/fallback/FallbackByteArrayImage.java (lines 43-43) has to be resolved: "Create tests for the class."

The puzzle was created by Mikhail Yakushin on 22-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

AttachmentAudio.java:52-52: Create a test class for this class.

The puzzle 7-f5cb2567 in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/AttachmentAudio.java (lines 52-52) has to be resolved: "Create a test class for this class."

The puzzle was created by Mikhail Yakushin on 23-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

AttachmentWallPhoto.java:51-51: Create tests for the class...

The puzzle 13-34bd7dc1 in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/AttachmentWallPhoto.java (lines 51-51) has to be resolved: "Create tests for the class AttachmentWallPhoto."

The puzzle was created by Mikhail Yakushin on 23-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Scheduled posting

Implement a feature that would allow to create wall posts according to a certain interval, such as once an hour (random time in hour) or once a day (random time during the day) or morning, evening, etc.

Combined wall post

Create wrapper classes that would have useful combinations such as a wall post with an aphorism, a random photo and a random song.

UploadVerification.java:42-42: Create test(s) for the class.

The puzzle 10-2d6e160e in src/main/java/com/driver733/vkmusicuploader/post/UploadVerification.java (lines 42-42) has to be resolved: "Create test(s) for the class."

The puzzle was created by Mikhail Yakushin on 23-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

AttachmentCachedAudio.java:49-49: Test this class.

The puzzle 6-3173d316 in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/AttachmentCachedAudio.java (lines 49-49) has to be resolved: "Test this class."

The puzzle was created by Mikhail Yakushin on 23-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

BasicTagTest.java:43-43: Write tests for other conditions.

The puzzle 17-ca71c469 in src/test/java/com/driver733/vkmusicuploader/wallpost/attachment/mp3filefromfile/basictag/BasicTagTest.java (lines 43-43) has to be resolved: "Write tests for other conditions."

The puzzle was created by Mikhail Yakushin on 26-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

BasicTagFromMp3File.java:38-38: Create tests for this class.

The puzzle 34-5c14e8bc in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/support/mp3filefromfile/basictag/BasicTagFromMp3File.java (lines 38-38) has to be resolved: "Create tests for this class."

The puzzle was created by Mikhail Yakushin on 22-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

AttachmentFromResultsTest.java:41-41: Need to create tests for all...

The puzzle 3-8ace6878 in src/test/java/com/driver733/vkmusicuploader/wallpost/attachment/support/AttachmentFromResultsTest.java (lines 41-41) has to be resolved: "Need to create tests for all attachment types."

The puzzle was created by Mikhail Yakushin on 22-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

WatchDirs.java:58-58: Create a test class for the current...

The puzzle 11-54b961cd in src/main/java/com/driver733/vkmusicuploader/post/WatchDirs.java (lines 58-58) has to be resolved: "Create a test class for the current class."

The puzzle was created by Mikhail Yakushin on 23-Jun-17.

Estimate: 0 minutes, role: IMP.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.