GithubHelp home page GithubHelp logo

drp's People

Watchers

 avatar  avatar

drp's Issues

Tests for DsvFileIterator

Class: com.github.aarexer.qcha.drp.deserializers.DsvFileIterator

Problem: Need to write unit-tests for class.

Test cases:

  1. resource is null
  2. resource properties is null - each property should has own test.
  3. File by uri in resource doesn't exist.
  4. File exists, but empty.
  5. File exists and has data, but it's not dsv.
  6. File exists and has right data.

DsvFileResource

Class: com.github.aarexer.qcha.drp.model.DsvFileResource.

Problem: We need to Builder, which can put default variables in some fields of class. For example - default line separator.

Unit tests for DsvFileResource

Class: com.github.aarexer.qcha.drp.model.DsvFileResource.

Problem: We need write unit tests for filling check.

Cases:

  1. Filling fields and check it.
  2. Test default values.

Configure logging

Need to configure logger and add log debug, error and etc messages in project code.

Ftp connection pool

It's bad to create new connection to ftp server every time when you need resource.
It will be good idea to have a connection pool, from which we can get connection.

library:
org.apache.commons.pool2

Archive and Compress types

Problem:
Data from these classes are copy-paste from CompressorStreamFactory and ArchiveStreamFactory.
It's bad design - When the library(apache.commons-compress) changes, we will not get these changes and our library will not work correctly.

Need to think how we can fix it.

Uri resolver

When we work with URI - we can resolve type of schema(ftp, ftps local and etc.).
And type of file.
Need to write class which can resolve what deserializer and connection should be use.

Resource generator for tests

As i can see - we need to use some generator for DsvResource in tests.

I think, that generator should have static methods for generate DsvResource:

  1. generate(uri) - generate resource with given uri.
  2. generate(uri, delimiter) - generate resource with given uri and delimiter.
  3. generate(uri, delimiter, quotes) - generate resource with given uri and delimiter, quotes.

and etc.

It needs for testing deserializers.

README.md

We need write good readme.md file and present our library.
With examples of using and etc.

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.