[jboss-svn-commits] JBL Code SVN: r12257 - labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/common/tests/com/hp/mwtests/commonlogging/testlevels.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu May 31 08:24:26 EDT 2007


Author: jhalliday
Date: 2007-05-31 08:24:25 -0400 (Thu, 31 May 2007)
New Revision: 12257

Modified:
   labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/common/tests/com/hp/mwtests/commonlogging/testlevels/TestLevels.java
Log:
Fixed broken regexp in TestLevels (JBTM-222)


Modified: labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/common/tests/com/hp/mwtests/commonlogging/testlevels/TestLevels.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/common/tests/com/hp/mwtests/commonlogging/testlevels/TestLevels.java	2007-05-31 11:48:43 UTC (rev 12256)
+++ labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/common/tests/com/hp/mwtests/commonlogging/testlevels/TestLevels.java	2007-05-31 12:24:25 UTC (rev 12257)
@@ -94,7 +94,7 @@
 	}
 
 	public static void verifyResult(String result, boolean expectReleveling) {
-		String[] lines = result.split("[\r\n]+?");
+		String[] lines = result.split("\r?\n"); //result.split("[\r\n]+?");
 		assertNotNull(lines);
 		assertEquals(5, lines.length);
 		assertTrue("Got actual value: "+lines[0], lines[0].matches("\\s*DEBUG \\[main\\] \\(TestLevels.java.*"));




More information about the jboss-svn-commits mailing list