1 package com.atlassian.util.concurrent;
2
3 import static org.junit.Assert.fail;
4
5 import org.junit.Test;
6
7 public class AssertionsTest {
8
9 @Test public void isNotNullThrowsNull() {
10 try {
11 Assertions.notNull("something", null);
12 fail("Should have thrown IllegalArgumentEx");
13 }
14 catch (final IllegalArgumentException expected) {
15 // yay
16 }
17 }
18
19 @Test public void isNotNull() {
20 Assertions.notNull("something", "notNull");
21 }
22 }