Code Monkey home page Code Monkey logo

Comments (8)

theresasogunle avatar theresasogunle commented on September 26, 2024 1

Okay. Thank you. Got that @pyjac

from rave-java-library.

theresasogunle avatar theresasogunle commented on September 26, 2024

It's written. You can check now.

from rave-java-library.

pyjac avatar pyjac commented on September 26, 2024

@theresasogunle While I really commend your effort. Those are not actual tests.

from rave-java-library.

pyjac avatar pyjac commented on September 26, 2024

@theresasogunle You can refer to this SO question to give a little background about writing setting up tests in JAVA. https://stackoverflow.com/questions/8751553/how-to-write-a-unit-test

from rave-java-library.

theresasogunle avatar theresasogunle commented on September 26, 2024

Hi @pyjac check the folder Rave-Java-Library/src/com/rave/junit/test/. Thank you. If thats not it, do you mind explaining what actual tests are ?

from rave-java-library.

pyjac avatar pyjac commented on September 26, 2024

@theresasogunle Ahhh... I see... I was looking at https://github.com/theresasogunle/Rave-Java-Library/tree/master/src/com/rave/test. Quite confused at first.

But you don't want to be hitting external resources with your tests. (i.e rave staging server). Your code should be written in such a way that calls to external services can be mocked.

from rave-java-library.

pyjac avatar pyjac commented on September 26, 2024

Also, It's clear what each test case is testing for.

And some with no assertion.

Also, You seem not to be accounting for when an exception is thrown in your test.

from rave-java-library.

pyjac avatar pyjac commented on September 26, 2024

As an example (not the best) of writing test cases... Check --- (PHP)
https://github.com/andela-joyebanji/OpenSourceEvangelist/blob/master/test/OpenSourceEvangelistFactoryTest.php..

So you have a little idea of what I mean.

from rave-java-library.

Related Issues (1)

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.