<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+ <classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.10</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
<plugins>
--- /dev/null
+package org.vanbest.xmltv;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class RTLTest {
+
+ private RTL rtl;
+ private final static int RTL_SOURCE_ID=2;
+ @Before
+ public void setUp() throws Exception {
+ Config config = Config.getDefaultConfig();
+ rtl = new RTL(RTL_SOURCE_ID, config);
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ rtl.close();
+ }
+
+ @Test
+ public void testGetName() {
+ assertEquals("RTL name should be known", "rtl.nl", rtl.getName());
+ }
+
+ @Test
+ public void testGetProgrammesListOfChannelInt() {
+ fail("Not yet implemented");
+ }
+
+}