...
main
- here are our source codes, with working functionalitiesCode Block public class SourceCodeClass { public static void main(String[] args) { System.out.printf("This is our main class!"); } }
test
- here are test classes, that check whether source code is working properly. This is where our JUnit5 is used →TestClass.java
Code Block // We import jupiter to our class to use proper annotation import org.junit.jupiter.api.*; // This is optional annotation that is sed to increase readability @DisplayName("JUnit 5 Example class") class TestClass { // This is obligatory annotation on test methods @Test void exampleTest() { System.out.println("example test method"); } }
...