/**
 * 
 */
package net.sf.kerner.utils.math;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

/**
 *
 * @author <a href="mailto:alex.kerner.24@googlemail.com">Alexander Kerner</a>
 * @version 2011-10-25
 *
 */
public class TestMathUtils2 {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test(expected=IllegalArgumentException.class)
	public final void testMin01() {
		MathUtils.min(new double[]{});
	}
	
	@Test(expected=IllegalArgumentException.class)
	public final void testMin02() {
		MathUtils.min(null);
	}
	
	@Test
	public final void testMin03() {
		assertEquals(0, MathUtils.min(new double[]{0,1}), 0);
	}
	
	@Test
	public final void testMin04() {
		assertEquals(-1, MathUtils.min(new double[]{0,-1}), 0);
	}

	@Test(expected=IllegalArgumentException.class)
	public final void testMax01() {
		MathUtils.max(new double[]{});
	}
	
	@Test(expected=IllegalArgumentException.class)
	public final void testMax02() {
		MathUtils.max(null);
	}
	
	@Test
	public final void testMax03() {
		assertEquals(1, MathUtils.max(new double[]{0,1}), 0);
	}
	
	@Test
	public final void testMax04() {
		assertEquals(0, MathUtils.max(new double[]{0,-1}), 0);
	}

	@Test(expected=IllegalArgumentException.class)
	public final void testMean01() {
		MathUtils.mean(new double[]{});
	}
	
	@Test(expected=IllegalArgumentException.class)
	public final void testMean02() {
		MathUtils.mean(null);
	}
	
	@Test
	public final void testMean03() {
		assertEquals(0.5, MathUtils.mean(new double[]{0,1}), 0);
	}
	
	@Test
	public final void testMean04() {
		assertEquals(-1, MathUtils.mean(new double[]{-1,-1}), 0);
	}

	@Test(expected=IllegalArgumentException.class)
	public final void testSum01() {
		MathUtils.sum(new double[]{});
	}
	
	@Test(expected=IllegalArgumentException.class)
	public final void testSum02() {
		MathUtils.sum(null);
	}
	
	@Test
	public final void testSum03() {
		assertEquals(1, MathUtils.sum(new double[]{0,1}), 0);
	}
	
	@Test
	public final void testSum04() {
		assertEquals(-2, MathUtils.sum(new double[]{-1,-1}), 0);
	}

	@Test(expected=IllegalArgumentException.class)
	public final void testStdDev01() {
		MathUtils.stdDev(new double[]{});
	}
	
	@Test(expected=IllegalArgumentException.class)
	public final void testStdDev02() {
		MathUtils.stdDev(null);
	}

	/**
	 * Test method for {@link net.sf.kerner.utils.math.MathUtils#increment(java.lang.Integer)}.
	 */
	@Ignore
	@Test
	public final void testIncrementInteger() {
		fail("Not yet implemented"); // TODO
	}

	/**
	 * Test method for {@link net.sf.kerner.utils.math.MathUtils#increment(java.lang.Integer, int)}.
	 */
	@Ignore
	@Test
	public final void testIncrementIntegerInt() {
		fail("Not yet implemented"); // TODO
	}

	/**
	 * Test method for {@link net.sf.kerner.utils.math.MathUtils#add(java.lang.Integer, java.lang.Integer)}.
	 */
	@Ignore
	@Test
	public final void testAdd() {
		fail("Not yet implemented"); // TODO
	}

}

@@ -1182,32 +1182,41 @@
 uble%5B%5D%7B%7D);%0A%09%7D%0A%09%0A
+%09@Ignore%0A
 %09@Test(expected=
@@ -1274,32 +1274,34 @@
 testMax02() %7B%0A%09%09
+//
 MathUtils.max(nu

Test stuff.