https://berkeley-cs61b.github.io/public_html/materials/lab/lab2/lab2.html
import org.junit.Test;
import static org.junit.Assert;
assertEquals(expected, actual);
To make testing output more concise
1. Annotate each test with @org.junit.Test
2. Make methods non-static
3. jh61b.junit.textui.runClasses
example:
https://github.com/Berkeley-CS61B/lectureCode/blob/master/lec4/live1/TestSort.java
No comments:
Post a Comment