Java unit testing

Recently we started writing unit test in school. A unit test is a program that tests your main program if it works properly. Of course we can test them with the console, but with unit tests it’s faster and more accurate. We are using JUnit for it. JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
We were testing the program ManyToOne, where we should make objects and make this objects linkable. There are 2 main types of objects – Many and One. The Many type objects should be able to link to only one One object at a time and the One type of object should have many Many objects related to it.

Here are the links to the ManyToOneRelation class and ManyToOneRelationTest:

https://github.com/powerworr/TP/tree/master/ManyToOne

If you have any questions to unit testing in java or something else related to programing, feel free to contact me!

New Exam in school

Before few weeks we had an exam, which was incredible easy for me. We needed to make some classes in which we should have had 1 abstract, 1 main, 1 inteface and 2 normal classes which should extend the main and the only difference between them was the interface. Here’s the code for the exam. If you have any questions feel free to contact me and ask them. 🙂

https://github.com/powerworr/TP/tree/master/GreenBelt