Skip to content

Commit 5ff07ab

Browse files
Add some documentation on MeasureSubject
1 parent c7f4c22 commit 5ff07ab

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

testing/src/main/java/com/team2813/lib2813/testing/truth/MeasureSubject.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
import edu.wpi.first.units.Unit;
2828
import javax.annotation.Nullable;
2929

30+
/**
31+
* Truth subject for making assertions about {@link Measure} values.
32+
*
33+
* <p>See <a href="https://truth.dev/extension">Writing your own custom subject</a> to learn about
34+
* creating custom Truth subjects.
35+
* @param <U> The WPILib Unit type of the {@link Measure}
36+
* @since 2.1.0
37+
*/
3038
public class MeasureSubject<U extends Unit> extends Subject {
3139
public static <U extends Unit> MeasureSubject<U> assertThat(@Nullable Measure<U> measure) {
3240
return assertAbout(MeasureSubject.<U>measures()).that(measure);

0 commit comments

Comments
 (0)