// Path: src/main/java/de/wellnerbou/chronic/plugins/NoImplementationFoundException.java
// public class NoImplementationFoundException extends RuntimeException {
// 	private static final long serialVersionUID = -4811467211038403821L;
// 
// 	public NoImplementationFoundException(final Class<?> clazz, final String id) {
// 		super("No implementation of " + clazz.getName() + " found with id " + id);
// 	}
// }


import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import de.wellnerbou.chronic.plugins.NoImplementationFoundException;
import org.junit.Test;
package de.wellnerbou.chronic.logparser;




public class LogLineParserProviderTest {

	LogLineParserProvider logLineParserProvider = new LogLineParserProvider(null);

	@Test
	public void testGetAllLogLineReader_noImplFound() {
		List<LogLineParser> logLineParser = logLineParserProvider.getAllImplementations("[Id without any implementation]");
		assertThat(logLineParser.size()).isEqualTo(0);
	}

	@Test
	public void testGetAllLogLineReader_dummy() {
		List<LogLineParser> logLineParser = logLineParserProvider.getAllImplementations("dummy");
		assertThat(logLineParser.size()).isEqualTo(1);
		assertThat(logLineParser.get(0)).isInstanceOf(DummyLogLineParser.class);
	}

// Path: src/main/java/de/wellnerbou/chronic/plugins/NoImplementationFoundException.java
// public class NoImplementationFoundException extends RuntimeException {
// 	private static final long serialVersionUID = -4811467211038403821L;
// 
// 	public NoImplementationFoundException(final Class<?> clazz, final String id) {
// 		super("No implementation of " + clazz.getName() + " found with id " + id);
// 	}
// }


// Path: src/test/java/de/wellnerbou/chronic/logparser/LogLineParserProviderTest.java
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import de.wellnerbou.chronic.plugins.NoImplementationFoundException;
import org.junit.Test;

package de.wellnerbou.chronic.logparser;




public class LogLineParserProviderTest {

	LogLineParserProvider logLineParserProvider = new LogLineParserProvider(null);

	@Test
	public void testGetAllLogLineReader_noImplFound() {
		List<LogLineParser> logLineParser = logLineParserProvider.getAllImplementations("[Id without any implementation]");
		assertThat(logLineParser.size()).isEqualTo(0);
	}

	@Test
	public void testGetAllLogLineReader_dummy() {
		List<LogLineParser> logLineParser = logLineParserProvider.getAllImplementations("dummy");
		assertThat(logLineParser.size()).isEqualTo(1);
		assertThat(logLineParser.get(0)).isInstanceOf(DummyLogLineParser.class);
	}

	@Test(expected = NoImplementationFoundException.class)