[Schmitzm-commits] r1755 - trunk/schmitzm-core/src/test/java/de/schmitzm/lang

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 12 00:41:34 CEST 2011


Author: mojays
Date: 2011-10-12 00:41:32 +0200 (Wed, 12 Oct 2011)
New Revision: 1755

Modified:
   trunk/schmitzm-core/src/test/java/de/schmitzm/lang/TimedLimitedHashmapTest.java
Log:
Test leicht modifiziert

Modified: trunk/schmitzm-core/src/test/java/de/schmitzm/lang/TimedLimitedHashmapTest.java
===================================================================
--- trunk/schmitzm-core/src/test/java/de/schmitzm/lang/TimedLimitedHashmapTest.java	2011-10-11 14:00:40 UTC (rev 1754)
+++ trunk/schmitzm-core/src/test/java/de/schmitzm/lang/TimedLimitedHashmapTest.java	2011-10-11 22:41:32 UTC (rev 1755)
@@ -1,5 +1,6 @@
 package de.schmitzm.lang;
 
+import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
@@ -17,11 +18,11 @@
 
 		tlhm.put("A", "A");
 		Thread.sleep(100);
-		assertNotNull(tlhm.get("A"));
+        assertNotNull("A muss noch in TLHM enthalten sein",tlhm.get("A"));
 		Thread.sleep(100);
-		assertNotNull(tlhm.get("A"));
+		assertNotNull("A muss noch in TLHM enthalten sein",tlhm.get("A"));
 		Thread.sleep(100);
-		assertNull(tlhm.get("A"));
+		assertNull("A muss aus TLHM entfernt sein",tlhm.get("A"));
 	}
 	
 
@@ -35,9 +36,13 @@
 		tlhm.put("B", "A");
 		Thread.sleep(110);
 		
-		assertTrue(tlhm.size() == 2);
+		assertTrue("TLHM muss Groesse 2 haben",tlhm.size() == 2);
 		Thread.sleep(410);
-		assertTrue(tlhm.size() == 0);
+		assertTrue("TLHM muss nun leer sein",tlhm.size() == 0);
+
+//        assertEquals(2, tlhm.size());
+//        Thread.sleep(410);
+//        assertEquals(0, tlhm.size());
 	}
 
 }



More information about the Schmitzm-commits mailing list