Index: trunk/JavaHelperLibTest/src/de/ugoe/cs/util/ArrayToolsTest.java
===================================================================
--- trunk/JavaHelperLibTest/src/de/ugoe/cs/util/ArrayToolsTest.java	(revision 273)
+++ trunk/JavaHelperLibTest/src/de/ugoe/cs/util/ArrayToolsTest.java	(revision 291)
@@ -17,5 +17,4 @@
 	@Test
 	public void testFindIndex_1() throws Exception {
-
 		Integer target = 3;
 		int expected = 3;
@@ -23,5 +22,4 @@
 		int result = ArrayTools.findIndex(array, target);
 
-		// add additional test code here
 		assertEquals(expected, result);
 	}
@@ -29,5 +27,4 @@
 	@Test
 	public void testFindIndex_2() throws Exception {
-
 		Integer target = 4;
 		int expected = 4;
@@ -35,5 +32,4 @@
 		int result = ArrayTools.findIndex(array, target);
 
-		// add additional test code here
 		assertEquals(expected, result);
 	}
@@ -45,6 +41,5 @@
 		int result = ArrayTools.findIndex(array, target);
 		int expected = -1;
-
-		// add additional test code here
+		
 		assertEquals(expected, result);
 	}
@@ -65,6 +60,121 @@
 		int result = ArrayTools.findIndex(array, other);
 
-		// add additional test code here
 		assertEquals(-1, result);
+	}
+	
+	@Test
+	public void testFindMax_1() throws Exception {
+		int expected = 8;
+		
+		int result = ArrayTools.findMax(array);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMax_2() throws Exception {
+		Integer[] arrayUnsorted = new Integer[]{2,3,6,1,8,9,1,1,3,15,4,0,-1};
+		int expected = 9;
+		
+		int result = ArrayTools.findMax(arrayUnsorted);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMax_3() throws Exception {
+		Integer[] arrayUnsorted = new Integer[]{2,3,6,1,8,9,1,1,3,15,4,15,-1};
+		int expected = 9;
+		
+		int result = ArrayTools.findMax(arrayUnsorted);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMax_4() throws Exception {
+		Integer[] arrayNoLenght = new Integer[]{};
+		int expected = -1;
+		
+		int result = ArrayTools.findMax(arrayNoLenght);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMax_5() throws Exception {
+		Integer[] arrayNulls = new Integer[]{null, null};
+		int expected = -1;
+		
+		int result = ArrayTools.findMax(arrayNulls);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMax_6() throws Exception {
+		int expected = -1;
+		
+		int result = ArrayTools.findMax(null);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMin_1() throws Exception {
+		int expected = 0;
+		
+		int result = ArrayTools.findMin(array);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMin_2() throws Exception {
+		Integer[] arrayUnsorted = new Integer[]{2,3,6,1,8,9,1,1,-3,15,4,0,-1};
+		int expected = 8;
+		
+		int result = ArrayTools.findMin(arrayUnsorted);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMin_3() throws Exception {
+		Integer[] arrayUnsorted = new Integer[]{2,3,6,1,8,9,1,-1,3,15,4,15,-1};
+		int expected = 7;
+		
+		int result = ArrayTools.findMin(arrayUnsorted);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMin_4() throws Exception {
+		Integer[] arrayNoLenght = new Integer[]{};
+		int expected = -1;
+		
+		int result = ArrayTools.findMin(arrayNoLenght);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMin_5() throws Exception {
+		Integer[] arrayNulls = new Integer[]{null, null};
+		int expected = -1;
+		
+		int result = ArrayTools.findMin(arrayNulls);
+		
+		assertEquals(expected, result);
+	}
+	
+	@Test
+	public void testFindMin_6() throws Exception {
+		int expected = -1;
+		
+		int result = ArrayTools.findMin(null);
+		
+		assertEquals(expected, result);
 	}
 
