Comments (8)
Okay. Thank you. Got that @pyjac
from rave-java-library.
It's written. You can check now.
from rave-java-library.
@theresasogunle While I really commend your effort. Those are not actual tests.
from rave-java-library.
@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.
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.
@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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rave-java-library.