package org.log4ju.junit4;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.log4ju.annotation.Message;
import org.log4ju.annotation.Messages;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Repeat;
import org.springframework.test.context.ContextConfiguration;

import config.TestConfig;

@RunWith(Spring4JunitLog4JuClassRunner.class)
@ContextConfiguration(classes = {TestConfig.class})
public class RunnerTest {
	
	@Autowired
	private MessageProducer mp;
	
	@Test
	@Repeat(2)
	@Messages(
		klazz = MessageProducer.class,
		messages = {
			@Message(message = "produced message with {}", params = {"param"}),
			@Message(message = "produced message with {}", params = {"param"})
		}
	)
	public void test() {
		mp.produceMessages();
	}

}

@@ -221,59 +221,8 @@
 ed;%0A
-import org.springframework.test.annotation.Repeat;%0A
 impo
@@ -487,20 +487,8 @@
 est%0A
-%09@Repeat(2)%0A
 %09@Me
@@ -547,79 +547,8 @@
 = %7B%0A
-%09%09%09@Message(message = %22produced message with %7B%7D%22, params = %7B%22param%22%7D),%0A
 %09%09%09@

Remove repeat