package de.codescape.bitvunit.util;

import org.junit.Test;

public class AssertTest {

    @Test(expected = IllegalArgumentException.class)
    public void notNullForNullThrowsIllegalArgumentException() throws Exception {
        Assert.notNull(null);
    }

    @Test
    public void notNullForNonNullThrowsNoException() throws Exception {
        Assert.notNull(new Object());
        Assert.notNull("Hello World");
        Assert.notNull(1);
    }

    @Test
    public void notEmptyForNonEmptyStringThrowsNoException() throws Exception {
        Assert.notEmpty("Hello World");
    }

    @Test(expected = IllegalArgumentException.class)
    public void notEmptyForNullThrowsIllegalArgumentException() throws Exception {
        Assert.notEmpty(null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void notEmptyForEmptyStringThrowsIllegalArgumentException() throws Exception {
        Assert.notEmpty("");
    }

    @Test(expected = IllegalArgumentException.class)
    public void notEmptyForWhitespacesOnlyThrowsIllegalArgumentException() throws Exception {
        Assert.notEmpty("    ");
    }

}

@@ -54,16 +54,62 @@
 .Test;%0A%0A
+import static org.junit.Assert.assertEquals;%0A%0A
 public c
@@ -243,32 +243,464 @@
 ption() 
-throws Exception
+%7B%0A        Assert.notNull((Object)null);%0A    %7D%0A%0A    @Test%0A    public void notNullForMessageAndNullThrowsIllegalArgumentException() %7B%0A        try %7B%0A            Assert.notNull(%22Message%22, null);%0A        %7D catch (IllegalArgumentException e) %7B%0A            assertEquals(%22Message%22, e.getMessage());%0A        %7D%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void notNullForMultipleObjectsWithNullObjectThrowsIllegalArgumentException()
  %7B%0A     
@@ -717,16 +717,29 @@
 notNull(
+%22%22, null, 1, 
 null);%0A 
@@ -784,42 +784,258 @@
 lFor
-NonNullThrowsNoException() throws 
+MultipleNonNullObjectsThrowsNoException() %7B%0A        Assert.notNull(1, 1, 1, 1, 1);%0A        Assert.notNull(%22%22, %222%22, %22saSASD%22);%0A        Assert.notNull(new Object(), new Object(), new Object());%0A    %7D%0A%0A    @Test%0A    public void notNullForNonNullThrowsNo
 Exce
@@ -1031,32 +1031,34 @@
 hrowsNoException
+()
  %7B%0A        Asser
@@ -1225,33 +1225,16 @@
 eption()
- throws Exception
  %7B%0A     
@@ -1391,33 +1391,16 @@
 eption()
- throws Exception
  %7B%0A     
@@ -1555,33 +1555,16 @@
 eption()
- throws Exception
  %7B%0A     
@@ -1725,25 +1725,8 @@
 on()
- throws Exception
  %7B%0A 

add tests as guards for failure in previous build