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(String.format("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"));
	}
}

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"));
	}
}

--- 
+++ 
@@ -8,7 +8,7 @@
 		ResolverLogger rl = new ResolverLogger();
 
 		rl.log(ResolverLogger.LOG_ERROR, "test", null);
-		assertEquals("ERROR: test\n", rl.getLog());
+		assertEquals(String.format("ERROR: test%n"), rl.getLog());
 		
 		for ( int i=0; i < 100000; i++) {
 			rl.log(ResolverLogger.LOG_ERROR, "test " + i, null);
resolve: Fix logger test for windows

Properly deal with eol differences.

Signed-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave.com>
