package biz.aQute.resolve;

import junit.framework.*;

public class ResolverLoggerTest extends TestCase {

	public void testSimple() throws Exception {
		ResolverLogger rl = new ResolverLogger();

		rl.log(ResolverLogger.LOG_ERROR, "test", null);
		assertEquals("ERROR: test\n", rl.getLog());
		
		for ( int i=0; i < 100000; i++) {
			rl.log(ResolverLogger.LOG_ERROR, "test " + i, null);
		}
		
		String s = rl.getLog();
		assertTrue( s.endsWith("test 99999\n"));
	}
}

@@ -255,16 +255,30 @@
 tEquals(
+String.format(
 %22ERROR: 
@@ -281,19 +281,20 @@
 OR: test
-%5C
+%25
 n%22
+)
 , rl.get

Fix logger test for windows