-
How to setup Java, JUnit, gradle and Intellij, for PSAlgorithm 2021. 1. 3. 20:10728x90
How to setup Java, JUnit, gradle and Intellij, for Problem Solving
This is a specialized template regarding how to setup Java, JUnit, gradle and Intellij together.
Especially, it is very good for problem solving(PS) as designed to handle multiple pairs of answer/input files.
In PS, answer and input files are proived a pair, to check that your code is written well to solve a problem.
So, it takes long text from input file, your code solve the problem with them,
And then, finally, the code print some result. If result is same with the answer, your code is PASSED.
To do so, System.in and System.out are replaced with InputStream and PrintSteam from a pair of answer and input files.Features
- Debugging with Intellij
- Run TestCase with a pair of answer and input
- By using JUnit, running TestCases are done by gradle
- Debugging and Running TestCases are completely seperated
- Replacing System.in/out with answer and input files
github repo
https://github.com/skysign/Java-JUnit-gradle-IntelliJ
Good Luck! for your PS
skysign at gmail.com
728x90'Algorithm' 카테고리의 다른 글
WAH (word-aligned hybrid), efficient bitmap index compress (0) 2020.12.06 Algorithm / Tree (0) 2020.09.13 WAH(word aligned hybrid) links (0) 2020.09.06 Bitmap index에서 WAH 사용시 장점 (0) 2020.09.06