You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
410 B
19 lines
410 B
7 years ago
|
package acr.browser.lightning.utils;
|
||
|
|
||
|
import org.junit.Test;
|
||
|
|
||
|
/**
|
||
|
* Unit tests for {@link Preconditions}.
|
||
|
*/
|
||
|
public class PreconditionsTest {
|
||
|
|
||
|
@Test(expected = RuntimeException.class)
|
||
|
public void checkNonNull_Null_ThrowsException() {
|
||
|
Preconditions.checkNonNull(null);
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public void checkNonNull_NonNull_Succeeds() {
|
||
|
Preconditions.checkNonNull(new Object());
|
||
|
}
|
||
|
}
|